Skip to content

Commit

Permalink
add test case for nim-lang#1771
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 committed Oct 26, 2022
1 parent 3b973f3 commit c9c13c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/generics/t1771.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type
Foo[X, T] = object
bar: array[X.low..X.high, T]

proc test[X, T](f: Foo[X, T]) =
echo f.bar[X.low]

0 comments on commit c9c13c6

Please sign in to comment.