2022-08-17 17:31:15 +02:00
|
|
|
# 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
|
2022-11-05 10:57:28 +01:00
|
|
|
# +1'i32; # Will not work
|