summaryrefslogblamecommitdiff
path: root/test/files/pos/unapplyVal.scala
blob: 3816152f205d705b83902e4becafa3103a083727 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                             
package test // bug #1215

class Async {
  def unapply(scrut: Any): Option[Any] = None
}

class Buffer {
  val Put = new Async
  //case class Put(x: int)

  def joinPat(x: Any): Unit = {
    x match {
      case Put =>
      case Put(y) =>
        println("returning "+y)
    }
  }
}