summaryrefslogtreecommitdiff
path: root/test/files/pos/t9855.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t9855.scala')
-rw-r--r--test/files/pos/t9855.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/t9855.scala b/test/files/pos/t9855.scala
new file mode 100644
index 0000000000..b6ac3e2432
--- /dev/null
+++ b/test/files/pos/t9855.scala
@@ -0,0 +1,10 @@
+class C {
+ def xx(verb: String, a: Array[Int]) {
+ val reYYYY = """(\d\d\d\d)""".r
+ verb match {
+ case "time" if a.isEmpty =>
+ case "time" =>
+ case reYYYY(y) =>
+ }
+ }
+}