summary refs log tree commit diff stats
path: root/tests/misc/tparamsindefault.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/tparamsindefault.nim')
-rw-r--r--tests/misc/tparamsindefault.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/misc/tparamsindefault.nim b/tests/misc/tparamsindefault.nim
index c678dcc60..3fe917f2b 100644
--- a/tests/misc/tparamsindefault.nim
+++ b/tests/misc/tparamsindefault.nim
@@ -18,6 +18,7 @@ f3 10 15 25
 true true
 false true
 world
+typedescDefault
 '''
 """
 
@@ -112,3 +113,8 @@ block:
 
   echo pySubstr("Hello world", -5)
 
+
+# bug #11660
+
+func typedescDefault(T: typedesc; arg: T = 0) = debugEcho "typedescDefault"
+typedescDefault(int)