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

4 lines
202 B
Solidity

contract test { struct s {uint a;} s x; s y; function() public { x == y; } }
// ----
// TypeError: (65-71): Operator == not compatible with types struct test.s storage ref and struct test.s storage ref