summary refs log tree commit diff stats
path: root/tests/generics
diff options
context:
space:
mode:
authorSirOlaf <34164198+SirOlaf@users.noreply.github.com>2023-08-10 07:56:09 +0200
committerGitHub <noreply@github.com>2023-08-10 07:56:09 +0200
commitbaf350493b08d5e1ee25f61b7d7eff33c3499487 (patch)
tree1c6bd881efab1037ace3227622dc2380dc85117f /tests/generics
parentfa58d23080dad13283cd180260b14cf8c57ab501 (diff)
downloadNim-baf350493b08d5e1ee25f61b7d7eff33c3499487.tar.gz
Fix #21760 (#22422)
* Remove call-specific replaceTypeVarsN

* Run for all call kinds and ignore typedesc

* Testcase

---------

Co-authored-by: SirOlaf <>
Diffstat (limited to 'tests/generics')
-rw-r--r--tests/generics/t21760.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/generics/t21760.nim b/tests/generics/t21760.nim
new file mode 100644
index 000000000..5343279bb
--- /dev/null
+++ b/tests/generics/t21760.nim
@@ -0,0 +1,8 @@
+import std/tables
+
+type Url = object
+
+proc myInit(_: type[Url], params = default(Table[string, string])): Url =
+  discard
+
+discard myInit(Url)
\ No newline at end of file