summary refs log blame commit diff stats
path: root/tests/accept/run/toverlop.nim
blob: ce302345f7e5818c8a4fe7c4ab049eb3c4ee0bf5 (plain) (tree)
1
2
3
4
5
6
7



                      

                            
                            






                     

 
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