This commit is contained in:
Andreas Rumpf
2019-03-22 11:55:15 +01:00
committed by GitHub
parent 83c105c3a3
commit 04ad200b40

View File

@@ -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))