solidity/test/libsolidity/syntaxTests/specialFunctions/abidecode/abi_decode_struct.sol
2022-04-01 23:41:18 -05:00

13 lines
218 B
Solidity

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