legacy-svn-scala/test/pos/bug91.scala

7 lines
186 B
Scala

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