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

10 lines
349 B
Solidity

error E(uint);
contract C {
function f() public pure returns (bytes memory) {
return abi.decode(msg.data, (E));
}
}
// ----
// TypeError 1039: (119-120='E'): Argument has to be a type name.
// TypeError 5132: (90-122='return abi.decode(msg.data, (E))'): Different number of arguments in return statement than in returns declaration.