solidity/test/libsolidity/syntaxTests/emit_non_event.sol

11 lines
194 B
Solidity

contract C {
uint256 Test;
function f() public {
emit Test();
}
}
// ----
// TypeError: (63-69): Type is not callable
// TypeError: (63-67): Expression has to be an event invocation.