aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0091.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t0091.scala')
-rw-r--r--tests/pos/t0091.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/t0091.scala b/tests/pos/t0091.scala
new file mode 100644
index 000000000..414e2c931
--- /dev/null
+++ b/tests/pos/t0091.scala
@@ -0,0 +1,6 @@
+class Bug {
+ def main(args: Array[String]) = {
+ var msg: String = null;
+ val f: PartialFunction[Any, Unit] = { case 42 => msg = "coucou" };
+ }
+}