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

9 lines
270 B
Solidity

contract Test {
event E(uint);
function f() public {
abi.decode(E, (bool));
}
}
// ----
// TypeError 1956: (80-81): The first argument to "abi.decode" must be implicitly convertible to bytes memory or bytes calldata, but is of type event E(uint256).