struct A cue init(i as int) _i = i pro i from var as int class P def main a = A(2) b = A(2) assert a.equals(b) assert a == b assert not (a <> b) b = A(3) assert not a.equals(b) assert not (a == b) assert a <> b