Show proper error when trying to emit a non-event

This commit is contained in:
Alex Beregszaszi
2018-05-04 12:47:01 +02:00
committed by chriseth
parent 5738f93704
commit ffe7f224a6
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.