Initial import
This commit is contained in:
commit
405b86068e
324 changed files with 163599 additions and 0 deletions
13
tests/toverlop.nim
Executable file
13
tests/toverlop.nim
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
# Test operator overloading
|
||||
|
||||
import
|
||||
io
|
||||
|
||||
proc % (a, b: int): int =
|
||||
return a mod b
|
||||
|
||||
var x, y: int
|
||||
x = 15
|
||||
y = 6
|
||||
write(stdout, x % y)
|
||||
#OUT 3
|
||||
Loading…
Add table
Add a link
Reference in a new issue