summary refs log tree commit diff stats
path: root/tests/stmt/tgenericsunderscore.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stmt/tgenericsunderscore.nim')
-rw-r--r--tests/stmt/tgenericsunderscore.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/stmt/tgenericsunderscore.nim b/tests/stmt/tgenericsunderscore.nim
new file mode 100644
index 000000000..be2b8ec78
--- /dev/null
+++ b/tests/stmt/tgenericsunderscore.nim
@@ -0,0 +1,4 @@
+# issue #21435
+
+proc foo[_](x: typedesc[_]): string = "BAR" #[tt.Error
+                        ^ the special identifier '_' is ignored in declarations and cannot be used]#