diff options
author | Araq <rumpf_a@web.de> | 2014-05-06 21:03:05 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-05-06 21:03:05 +0200 |
commit | bdb2d21f276c10aee122218384e568ef843690fa (patch) | |
tree | edcc4bbbce19685c45bad458bdb2abcc860fdc28 | |
parent | 1549bed82f0a02d0c396fb88715454624eb641c6 (diff) | |
download | Nim-bdb2d21f276c10aee122218384e568ef843690fa.tar.gz |
bugfix: bool for case statements
-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 fc4704b5c..c2827905c 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -190,7 +190,7 @@ proc semCase(c: PContext, n: PNode): PNode = var typ = commonTypeBegin var hasElse = false case skipTypes(n.sons[0].typ, abstractVarRange-{tyTypeDesc}).kind - of tyInt..tyInt64, tyChar, tyEnum, tyUInt..tyUInt32: + of tyInt..tyInt64, tyChar, tyEnum, tyUInt..tyUInt32, tyBool: chckCovered = true of tyFloat..tyFloat128, tyString, tyError: discard |