summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-05-06 21:03:05 +0200
committerAraq <rumpf_a@web.de>2014-05-06 21:03:05 +0200
commitbdb2d21f276c10aee122218384e568ef843690fa (patch)
treeedcc4bbbce19685c45bad458bdb2abcc860fdc28
parent1549bed82f0a02d0c396fb88715454624eb641c6 (diff)
downloadNim-bdb2d21f276c10aee122218384e568ef843690fa.tar.gz
bugfix: bool for case statements
-rw-r--r--compiler/semstmts.nim2
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