blob: e05365caf4c3fa337efbd699c9ddd228d65ea98c (
plain) (
blame)
1
2
3
4
5
6
|
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" };
}
}
|