diff options
Diffstat (limited to 'tests/generics/t3977.nim')
-rw-r--r-- | tests/generics/t3977.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/generics/t3977.nim b/tests/generics/t3977.nim new file mode 100644 index 000000000..314017744 --- /dev/null +++ b/tests/generics/t3977.nim @@ -0,0 +1,12 @@ +discard """ + output: '''42''' +""" + +type + Foo[N: static[int]] = object + +proc foo[N](x: Foo[N]) = + echo N + +var f1: Foo[42] +f1.foo |