closes #13618; add testcase (#20734)

This commit is contained in:
ringabout
2022-11-02 19:25:51 +08:00
committed by GitHub
parent 606aa45ec6
commit 117a19d032

View 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