solidity/test/libsolidity/syntaxTests/errors/abi_encode_error.sol
2021-03-30 21:15:18 +02:00

9 lines
187 B
Solidity

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