summary refs log tree commit diff stats
path: root/tests/generics/t21742.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/generics/t21742.nim')
-rw-r--r--tests/generics/t21742.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/generics/t21742.nim b/tests/generics/t21742.nim
new file mode 100644
index 000000000..c49c8ee97
--- /dev/null
+++ b/tests/generics/t21742.nim
@@ -0,0 +1,10 @@
+type
+  Foo[T] = object
+    x:T
+  Bar[T,R] = Foo[T]
+  Baz = Bar[int,float]
+
+proc qux[T,R](x: Bar[T,R]) = discard
+
+var b:Baz
+b.qux()
\ No newline at end of file