closes #13618; add testcase (#20734)

This commit is contained in:
ringabout 2022-11-02 19:25:51 +08:00 • committed by GitHub
commit 117a19d032
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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