Merge pull request #4063 from ethereum/emit-non-event

Show proper error when trying to emit a non-event
This commit is contained in:
chriseth
2018-05-04 15:02:04 +02:00
committed by GitHub
3 changed files with 12 additions and 0 deletions
@@ -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.