# Pastebin T1sulYdU #!/usr/bin/env raku class Point {...} multi infix:<==>(Point $v1, Point $v2) { return $v1.x == $v2.x and $v1.y == $v2.y; } class Point { has Int $.x; has Int $.y; method new(Int $x, Int $y) { self.bless(:$x, :$y); } } use Test; plan 1; ok Point.new(0, 1) == Point.new(0, 1), "test ==";