blob: ce302345f7e5818c8a4fe7c4ab049eb3c4ee0bf5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
discard """
file: "toverlop.nim"
output: "3"
"""
# Test operator overloading
proc `%` (a, b: int): int =
return a mod b
var x, y: int
x = 15
y = 6
write(stdout, x % y)
#OUT 3
|