diff options
author | Adriaan Moors <adriaan@lightbend.com> | 2016-07-18 14:35:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-18 14:35:27 -0700 |
commit | 52fb8e88aa4ac5f1c165065e08c6bbe4d49eb4a9 (patch) | |
tree | 5fe720b23a526779c8dcb11bc105c4d5ffadee0a /test/files/pos/t9855.scala | |
parent | c901ad6c66ddcaafdd7600027afc330595bcecbb (diff) | |
parent | d386e802d53ab616a8a6005c89a9be30ab5526d8 (diff) | |
download | scala-52fb8e88aa4ac5f1c165065e08c6bbe4d49eb4a9.tar.gz scala-52fb8e88aa4ac5f1c165065e08c6bbe4d49eb4a9.tar.bz2 scala-52fb8e88aa4ac5f1c165065e08c6bbe4d49eb4a9.zip |
Merge pull request #5273 from retronym/ticket/9855
SI-9855 Fix regression in extractor pattern translation
Diffstat (limited to 'test/files/pos/t9855.scala')
-rw-r--r-- | test/files/pos/t9855.scala | 10 |
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) => + } + } +} |