summaryrefslogblamecommitdiff
path: root/test/files/pos/bug0091.scala
blob: 54c821b41c2998fd2b9766ff6ce9810b6a228621 (plain) (tree)
1
2
3
4
5
6





                                                                       
class Bug {
  def main(args: Array[String]) = {
    var msg: String = null; // no bug if "null" instead of "_"
    val f:  PartialFunction[Any, unit] = { case 42 => msg = "coucou" };
  }
}