summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-03-22 11:55:15 +0100
committerGitHub <noreply@github.com>2019-03-22 11:55:15 +0100
commit04ad200b403f1c4908a1a043e1f27b111298e1f3 (patch)
treeb1b2a014ca29f3f716b0af9983a8653da2af2a32 /compiler
parent83c105c3a33caf5e3158afdc540413e3795c159c (diff)
downloadNim-04ad200b403f1c4908a1a043e1f27b111298e1f3.tar.gz
fixes #10884 (#10887)
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 9203f6437..dcb6ea5a4 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))