Nim/tests/typerel/tsigmatch.nim
2022-11-02 19:25:51 +08:00

6 lines
130 B
Nim

block: # bug #13618
proc test(x: Natural or BackwardsIndex): int =
int(x)
doAssert test(^1) == 1
doAssert test(1) == 1