mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
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
|
||||
Reference in New Issue
Block a user