summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-05-08 16:31:59 +0200
committerAraq <rumpf_a@web.de>2019-05-08 16:31:59 +0200
commitf6c9fe789f662342bb44117a1fe98a7a585a8f4d (patch)
tree24ca369028598099c851eb43fa4894529a6de139 /compiler
parentddad57e7a91f47341e3a7c28860c10c5b02fa6ba (diff)
downloadNim-f6c9fe789f662342bb44117a1fe98a7a585a8f4d.tar.gz
fixes #11200
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 18e59681d..1686cd1f1 100644
--- a/compiler/semtypinst.nim
+++ b/compiler/semtypinst.nim
@@ -254,7 +254,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 in routineKinds or s.magic != mNone:
+  if s.kind in routineKinds+{skLet, skConst, skVar} or s.magic != mNone:
     return s
 
   #result = PSym(idTableGet(cl.symMap, s))