mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #4063 from ethereum/emit-non-event
Show proper error when trying to emit a non-event
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
contract C {
|
||||
uint256 Test;
|
||||
|
||||
function f() {
|
||||
emit Test();
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (56-62): Type is not callable
|
||||
// TypeError: (56-60): Expression has to be an event invocation.
|
||||
Reference in New Issue
Block a user