solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/203_struct_reference_compare_operators.sol

11 lines
218 B
Solidity

contract test {
struct s {uint a;}
s x;
s y;
fallback() external {
x == y;
}
}
// ----
// TypeError: (79-85): Operator == not compatible with types struct test.s storage ref and struct test.s storage ref