parent
606aa45ec6
commit
117a19d032
1 changed files with 6 additions and 0 deletions
6
tests/typerel/tsigmatch.nim
Normal file
6
tests/typerel/tsigmatch.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
block: # bug #13618
|
||||||
|
proc test(x: Natural or BackwardsIndex): int =
|
||||||
|
int(x)
|
||||||
|
|
||||||
|
doAssert test(^1) == 1
|
||||||
|
doAssert test(1) == 1
|
||||||
Loading…
Add table
Add a link
Reference in a new issue