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

10 lines
310 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.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.