summaryrefslogtreecommitdiff
path: root/test/files/run/sd167.scala
blob: 5095e772ad78892e0dcc6b42cb3d40bef4371c07 (plain) (blame)
1
2
3
4
5
6
7
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
  }
}