4066 fixup

This commit is contained in:
Yuriy Glukhov
2016-05-19 12:34:18 +03:00
parent d3e9589b3d
commit 0d5c8b32e7

View File

@@ -782,7 +782,7 @@ proc typeSectionFinalPass(c: PContext, n: PNode) =
while x.kind in {nkStmtList, nkStmtListExpr} and x.len > 0:
x = x.lastSon
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:
var t = semTypeNode(c, x, nil)
assert t != nil