Changing rules of operator overload lookup
This commit is contained in:
@@ -10,6 +10,8 @@ Vec3 :: struct;; x: F32; y: F32; z: F32
|
||||
main :: (): int
|
||||
a := Vec3{1,1,1}
|
||||
b := Vec3{2,3,4}
|
||||
|
||||
// The expressions are replaced with the defined lambdas
|
||||
c := a + b
|
||||
Assert(c.x == 3 && c.y == 4 && c.z == 5)
|
||||
d := -c
|
||||
|
||||
Reference in New Issue
Block a user