4066 fixup
This commit is contained in:
parent
d3e9589b3d
commit
0d5c8b32e7
1 changed files with 1 additions and 1 deletions
|
|
@ -782,7 +782,7 @@ proc typeSectionFinalPass(c: PContext, n: PNode) =
|
||||||
while x.kind in {nkStmtList, nkStmtListExpr} and x.len > 0:
|
while x.kind in {nkStmtList, nkStmtListExpr} and x.len > 0:
|
||||||
x = x.lastSon
|
x = x.lastSon
|
||||||
if x.kind notin {nkObjectTy, nkDistinctTy, nkEnumTy, nkEmpty} and
|
if x.kind notin {nkObjectTy, nkDistinctTy, nkEnumTy, nkEmpty} and
|
||||||
s.typ.kind notin {tyObject, tyEnum, tyDistinct}:
|
s.typ.kind notin {tyObject, tyEnum}:
|
||||||
# type aliases are hard:
|
# type aliases are hard:
|
||||||
var t = semTypeNode(c, x, nil)
|
var t = semTypeNode(c, x, nil)
|
||||||
assert t != nil
|
assert t != nil
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue