summaryrefslogtreecommitdiff
path: root/test/files/neg/t8158/Test_2.scala
blob: f5ac6616bb2c24036be02950a1b9c5b840281ada (plain) (blame)
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 _ => ???
    }
  }
}