summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorYuriy Glukhov <yutiy.glukhov@gmail.com>2016-05-19 12:34:18 +0300
committerYuriy Glukhov <yutiy.glukhov@gmail.com>2016-05-19 12:34:18 +0300
commit0d5c8b32e790d864b9fb495b0674fb7db15fea1c (patch)
treeb52e8889345c54796c9fba27da0a577b9508d989
parentd3e9589b3d6ae682c7f42103e5ae3b255e6a77fb (diff)
downloadNim-0d5c8b32e790d864b9fb495b0674fb7db15fea1c.tar.gz
4066 fixup
-rw-r--r--compiler/semstmts.nim2
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