mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
299 B
Solidity
14 lines
299 B
Solidity
contract C {
|
|
struct S { uint x; }
|
|
S s;
|
|
struct T { uint y; }
|
|
T t;
|
|
function f() public view {
|
|
bytes32 a = sha256(abi.encodePacked(s, t));
|
|
a;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (156-157): This type cannot be encoded.
|
|
// TypeError: (159-160): This type cannot be encoded.
|