solidity/test/libsolidity/syntaxTests/abiEncoder/abi_encodeCall_event_free_function.sol
2022-07-25 12:40:54 -04:00

10 lines
233 B
Solidity

library L {
event E(uint);
}
function f() {
abi.encodeCall(L.E, (1));
}
// ----
// TypeError 3509: (68-71): Expected regular external function type, or external view on public function. Cannot use events for abi.encodeCall.