summary refs log tree commit diff stats
path: root/tests/generics/taliashijack.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/generics/taliashijack.nim')
-rw-r--r--tests/generics/taliashijack.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/generics/taliashijack.nim b/tests/generics/taliashijack.nim
new file mode 100644
index 000000000..fdebadded
--- /dev/null
+++ b/tests/generics/taliashijack.nim
@@ -0,0 +1,8 @@
+# issue #23977
+
+type Foo[T] = int
+
+proc foo(T: typedesc) =
+  var a: T
+
+foo(int)