diff options
author | Yuriy Glukhov <yutiy.glukhov@gmail.com> | 2016-05-19 12:34:18 +0300 |
---|---|---|
committer | Yuriy Glukhov <yutiy.glukhov@gmail.com> | 2016-05-19 12:34:18 +0300 |
commit | 0d5c8b32e790d864b9fb495b0674fb7db15fea1c (patch) | |
tree | b52e8889345c54796c9fba27da0a577b9508d989 | |
parent | d3e9589b3d6ae682c7f42103e5ae3b255e6a77fb (diff) | |
download | Nim-0d5c8b32e790d864b9fb495b0674fb7db15fea1c.tar.gz |
4066 fixup
-rw-r--r-- | compiler/semstmts.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index dcc7ecd92..f20a0c36a 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -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 |