diff options
Diffstat (limited to 'test/libsolidity/syntaxTests/emit/emit_non_event.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/emit/emit_non_event.sol | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/emit/emit_non_event.sol b/test/libsolidity/syntaxTests/emit/emit_non_event.sol new file mode 100644 index 00000000..d5045ddf --- /dev/null +++ b/test/libsolidity/syntaxTests/emit/emit_non_event.sol @@ -0,0 +1,10 @@ +contract C { + uint256 Test; + + function f() public { + emit Test(); + } +} +// ---- +// TypeError: (63-69): Type is not callable +// TypeError: (63-67): Expression has to be an event invocation. |