solidity/test/libsolidity/syntaxTests/emit_non_event.sol

11 lines
187 B
Solidity
Raw Normal View History

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.