summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-05-20 00:56:07 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-05-20 00:56:07 +0200
commita263f1dc62aba61507c36e9368bea37076eb0650 (patch)
treefdfe958f4fbb7db5fef74f79704a831b7a9a3733
parent287eb8802ff5c594443024b904fc782c3163c69f (diff)
parent0d5c8b32e790d864b9fb495b0674fb7db15fea1c (diff)
downloadNim-a263f1dc62aba61507c36e9368bea37076eb0650.tar.gz
Merge pull request #4185 from yglukhov/fixup-4066
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