mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
288 B
Solidity
11 lines
288 B
Solidity
contract C {
|
|
event MyCustomEvent(uint);
|
|
function f() pure public {
|
|
MyCustomEvent++;
|
|
}
|
|
}
|
|
|
|
// ----
|
|
// TypeError 4247: (83-96): Expression has to be an lvalue.
|
|
// TypeError 9767: (83-98): Built-in unary operator ++ cannot be applied to type event MyCustomEvent(uint256).
|