blob: d491b7cfb93dc344c1e7bdfd0424d1ec482fe627 (
plain) (
blame)
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" };
}
}
|