summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorJason Beetham <beefers331@gmail.com>2021-09-06 01:43:26 -0600
committerGitHub <noreply@github.com>2021-09-06 09:43:26 +0200
commit7ae52d779184cd8a16b760e384777a75ed54464b (patch)
tree0b21c63dc567dbf1bab97d826fe3628764785c22 /compiler
parentf373c17ad926b669bb3b5819ae1dff4bde1da88a (diff)
downloadNim-7ae52d779184cd8a16b760e384777a75ed54464b.tar.gz
Fix recursive generic typed defs (#18809)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semtypinst.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim
index 9f9eb9489..01b21498b 100644
--- a/compiler/semtypinst.nim
+++ b/compiler/semtypinst.nim
@@ -378,7 +378,7 @@ proc handleGenericInvocation(cl: var TReplTypeVars, t: PType): PType =
   cl.typeMap = newTypeMapLayer(cl)
 
   for i in 1..<t.len:
-    var x = replaceTypeVarsT(cl, t[i])
+    var x = replaceTypeVarsT(cl, header[i])
     assert x.kind != tyGenericInvocation
     header[i] = x
     propagateToOwner(header, x)