summary refs log tree commit diff stats
path: root/tests/generics/tclosed_sym.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/generics/tclosed_sym.nim')
-rw-r--r--tests/generics/tclosed_sym.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/generics/tclosed_sym.nim b/tests/generics/tclosed_sym.nim
new file mode 100644
index 000000000..ff620c267
--- /dev/null
+++ b/tests/generics/tclosed_sym.nim
@@ -0,0 +1,11 @@
+discard """
+  output: "TEST2"
+"""
+
+# bug #2664
+
+import mclosed_sym
+
+proc same(r:R, d:int) = echo "TEST1"
+
+doIt(Data[int](d:123), R())