solidity/test/libsolidity/syntaxTests/specialFunctions/abidecode/abi_decode_nontuple.sol

12 lines
420 B
Solidity
Raw Normal View History

2018-06-30 16:09:13 +00:00
contract C {
function f() public pure {
abi.decode("abc", uint);
abi.decode("abc", this);
abi.decode("abc", f());
}
}
// ----
// TypeError 6444: (64-68): The second argument to "abi.decode" has to be a tuple of types.
// TypeError 6444: (93-97): The second argument to "abi.decode" has to be a tuple of types.
// TypeError 6444: (122-125): The second argument to "abi.decode" has to be a tuple of types.