solidity/test/libsolidity/syntaxTests/specialFunctions/abidecode/abi_decode_invalid_arg_type.sol
2019-02-06 20:45:30 +01:00

9 lines
312 B
Solidity

contract C {
function f() public pure {
abi.decode(uint, uint);
}
}
// ----
// TypeError: (57-61): Invalid type for argument in function call. Invalid implicit conversion from type(uint256) to bytes memory requested.
// TypeError: (63-67): The second argument to "abi.decode" has to be a tuple of types.