diff options
Diffstat (limited to 'tests/template')
-rw-r--r-- | tests/template/template_issues.nim | 6 |
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 |