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

13 lines
214 B
Solidity

pragma abicoder v1;
struct S {
uint x;
}
contract C {
function f() public pure {
abi.decode("1234", (S));
}
}
// ----
// TypeError 9611: (118-119): Decoding type struct S memory not supported.