936d60a262 ^
1 2 3 4 5 6 7 8 9 10 11 12 13 14
import scala.language.experimental.macros object X { def unapply(any: Any): Any = macro Max.impl } class BugTest { def bug(): Unit = { "any" match { case X() => case _ => ??? } } }