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

10 lines
310 B
Solidity

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