forked from ethereum/solidity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix emit statments being printed on the same line
Update test/libsolidity/semanticTests/emit_three_identical_events.sol Co-authored-by: Kamil Śliwak <[email protected]> Update test/libsolidity/semanticTests/emit_two_identical_events.sol Co-authored-by: Nikola Matić <[email protected]>
- Loading branch information
1 parent
84cdcec
commit 54965fb
Showing
3 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
test/libsolidity/semanticTests/emit_three_identical_events.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
contract C { | ||
event Terminated(); | ||
|
||
function terminate() external { | ||
emit Terminated(); | ||
emit Terminated(); | ||
emit Terminated(); | ||
} | ||
} | ||
// ---- | ||
// terminate() -> | ||
// ~ emit Terminated() | ||
// ~ emit Terminated() | ||
// ~ emit Terminated() |
12 changes: 12 additions & 0 deletions
12
test/libsolidity/semanticTests/emit_two_identical_events.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
contract C { | ||
event Terminated(); | ||
|
||
function terminate() external { | ||
emit Terminated(); | ||
emit Terminated(); | ||
} | ||
} | ||
// ---- | ||
// terminate() -> | ||
// ~ emit Terminated() | ||
// ~ emit Terminated() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters