semtypinst: don't wrap type nodes from expressions in static[T] (#18860)
This commit is contained in:
parent
f8e185fec0
commit
6cd219c3a3
2 changed files with 18 additions and 1 deletions
|
|
@ -548,7 +548,7 @@ proc replaceTypeVarsTAux(cl: var TReplTypeVars, t: PType): PType =
|
|||
result = n.typ.skipTypes({tyTypeDesc})
|
||||
# result = n.typ.base
|
||||
else:
|
||||
if n.typ.kind != tyStatic:
|
||||
if n.typ.kind != tyStatic and n.kind != nkType:
|
||||
# XXX: In the future, semConstExpr should
|
||||
# return tyStatic values to let anyone make
|
||||
# use of this knowledge. The patching here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue