summaryrefslogblamecommitdiff
path: root/test/files/pos/bug1107.scala
blob: d3cdbf65cc3136c333c1de87611684a6ab215841 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                           
object F {
  def tryf[T](ignore: List[Class])(f: => T): Any = {
    try {
      f
    } catch {
      case e if ignore == null || ignore.isEmpty => {false}
    }
  }
}