aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/virtpatmat_exist3.scala
blob: 6a6d428b1a09eeb97a0cb502e3dda4dcc994de1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
class ReferenceQueue[T] {
  def wrapper(jref: ReferenceQueue[_]): ReferenceQueue[T] =
    jref match {
      case null => null
    }

  // def wrapper(jref: ReferenceQueue[_]): ReferenceQueue[T] = OptionMatching.runOrElse(jref)(((x1: ReferenceQueue[_]) =>
  //   (OptionMatching.guard(null.==(x1), x1.asInstanceOf[ReferenceQueue[_]]).flatMap(((x2: ReferenceQueue[_]) =>
  //     OptionMatching.one(null))): Option[ReferenceQueue[T]]).orElse(
  //   (OptionMatching.zero: Option[ReferenceQueue[T]])))
  // )
}