summary refs log tree commit diff stats
path: root/tests/template/template_issues.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template/template_issues.nim')
-rw-r--r--tests/template/template_issues.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/template/template_issues.nim b/tests/template/template_issues.nim
index 1fed694ef..58c40941d 100644
--- a/tests/template/template_issues.nim
+++ b/tests/template/template_issues.nim
@@ -296,3 +296,9 @@ block: # bug #12595
     discard {i: ""}
 
   test()
+
+block: # bug #21920
+  template t[T](): T =
+    discard
+
+  t[void]() # Error: expression has no type: discard