summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/matching/PatternMatchers.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala b/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala
index f704703490..45ff87c4de 100644
--- a/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala
+++ b/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala
@@ -918,6 +918,20 @@ print()
node.and.bodyToTree(),
mappings);
node = node.or;
+
+ case ConstantPat( value: Char )=>
+ mappings = insert1(value.toInt,node.and.bodyToTree(),mappings);
+ node = node.or;
+
+/*
+ case ConstantPat( value: Byte )=>
+ mappings = insert1(value.toInt,node.and.bodyToTree(),mappings);
+ node = node.or;
+
+ case ConstantPat( value: Short )=>
+ mappings = insert1(value.toInt,node.and.bodyToTree(),mappings);
+ node = node.or;
+*/ // these correct?
}
}
patNode = patNode.nextH()