From 04ad200b403f1c4908a1a043e1f27b111298e1f3 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 22 Mar 2019 11:55:15 +0100 Subject: [PATCH] fixes #10884 (#10887) --- compiler/semtypinst.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim index 9203f64373..dcb6ea5a48 100644 --- a/compiler/semtypinst.nim +++ b/compiler/semtypinst.nim @@ -255,7 +255,7 @@ proc replaceTypeVarsS(cl: var TReplTypeVars, s: PSym): PSym = # (e.g. skGenericParam and skType). # Note: `s.magic` may be `mType` in an example such as: # proc foo[T](a: T, b = myDefault(type(a))) - if s.kind == skProc or s.magic != mNone: + if s.kind in routineKinds or s.magic != mNone: return s #result = PSym(idTableGet(cl.symMap, s))