peon/tests/dispatch.pn

11 lines
137 B
Plaintext
Raw Normal View History

# Tests operator dispatching
2022-05-29 14:52:47 +02:00
operator `+`(a: int): int {
2022-06-02 10:19:34 +02:00
return a;
2022-05-29 14:52:47 +02:00
}
+1; # Works: defined for int64
# +1'i32; # Will not work