solidity/test/libsolidity/syntaxTests/events/event_incompatible_unary_operator.sol

11 lines
279 B
Solidity
Raw Normal View History

contract C {
event MyCustomEvent(uint);
function f() pure public {
MyCustomEvent++;
}
}
// ----
// TypeError 4247: (83-96): Expression has to be an lvalue.
2022-08-03 08:44:25 +00:00
// TypeError 9767: (83-98): Unary operator ++ cannot be applied to type event MyCustomEvent(uint256).