summaryrefslogblamecommitdiff
path: root/test/files/pos/virtpatmat_exist3.scala
blob: 94385f32c98eee167870bd0cd93ba1f09dd3706a (plain) (tree)
1
2
3
4
5
6
7
8





                                                           

                                                                                                                         



                                                                       
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]])))
  // )
}