mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Show proper error when trying to emit a non-event
This commit is contained in:
committed by
chriseth
parent
5738f93704
commit
ffe7f224a6
@@ -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