solidity/test/libsolidity/syntaxTests/abiEncoder/abi_encodeCall_event_free_function.sol

10 lines
233 B
Solidity
Raw Normal View History

2022-07-17 05:00:12 +00:00
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.