solidity/test/libsolidity/syntaxTests/specialFunctions/types_with_unspecified_encoding_structs.sol
2018-04-10 14:08:22 +02:00

15 lines
332 B
Solidity

contract C {
struct S { uint x; }
S s;
struct T { }
T t;
function f() public pure {
bytes32 a = sha256(s, t);
a;
}
}
// ----
// Warning: (51-63): Defining empty structs is deprecated.
// TypeError: (131-132): This type cannot be encoded.
// TypeError: (134-135): This type cannot be encoded.