mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
332 B
Solidity
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.
|