summaryrefslogtreecommitdiff
path: root/test/files/run/sd167.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/sd167.scala')
-rw-r--r--test/files/run/sd167.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/sd167.scala b/test/files/run/sd167.scala
new file mode 100644
index 0000000000..5095e772ad
--- /dev/null
+++ b/test/files/run/sd167.scala
@@ -0,0 +1,8 @@
+object Test {
+ implicit class ToExtractor(val s: StringContext) {
+ def x = {println("x"); Some }
+ }
+ def main(args: Array[String]) {
+ Some(1) match { case x"${a}" => } // used to convert to `case Some(a) =>` and omit side effects
+ }
+}