solidity/test/libsolidity/syntaxTests/errors/abi_encode_error.sol

9 lines
187 B
Solidity
Raw Normal View History

2021-01-28 11:56:22 +00:00
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.