solidity/test/libsolidity/syntaxTests/emit/emit_non_event.sol

11 lines
194 B
Solidity
Raw Normal View History

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.