solidity/test/libsolidity/syntaxTests/errors/abi_encode_error.sol
2022-04-01 23:41:18 -05:00

9 lines
191 B
Solidity

error E(uint);
contract C {
function f() public pure returns (bytes memory) {
return abi.encode(E);
}
}
// ----
// TypeError 2056: (108-109='E'): This type cannot be encoded.