Nim/tests/accept/compile/tnewuns.nim
2010-02-26 01:26:16 +01:00

12 lines
137 B
Nim
Executable file

# test the new unsigned operations:
import
strutils
var
x, y: int
x = 1
y = high(int)
writeln(stdout, $ ( x +% y ) )