aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/203_struct_reference_compare_operators.sol
blob: a74850b327897d4acdeec9ef0da2564d312136cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
contract test {
  struct s {uint a;}
  s x;
  s y;
  function() external {
    x == y;
  }
}
// ----
// TypeError: (79-85): Operator == not compatible with types struct test.s storage ref and struct test.s storage ref