solidity/test/libsolidity/syntaxTests/specialFunctions/types_with_unspecified_encoding_structs.sol

15 lines
301 B
Solidity
Raw Normal View History

contract C {
struct S { uint x; }
S s;
struct T { }
T t;
function f() public pure {
bytes32 a = sha256(s, t);
a;
}
}
// ----
2018-03-30 23:27:01 +00:00
// Warning: Defining empty structs is deprecated.
// TypeError: This type cannot be encoded.
// TypeError: This type cannot be encoded.