blob: 5095e772ad78892e0dcc6b42cb3d40bef4371c07 (
plain) (
tree)
|
|
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
}
}
|