class Test var _x as int cue init(x as int) base.init _x = x get x from var def compareTo(t as Test) as int return .x - t.x def main is shared a = Test(1) b = Test(2) c = Test(1) assert a < b assert a <= b assert b > a assert b >= a assert a == c