From 12053fa4d55497fc4df06afd67ba3762019969c3 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Mon, 14 Sep 2015 17:07:23 +0200 Subject: Enable more tests that pass --- tests/run/virtpatmat_npe.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/run/virtpatmat_npe.scala (limited to 'tests/run/virtpatmat_npe.scala') diff --git a/tests/run/virtpatmat_npe.scala b/tests/run/virtpatmat_npe.scala new file mode 100644 index 000000000..efa66f328 --- /dev/null +++ b/tests/run/virtpatmat_npe.scala @@ -0,0 +1,10 @@ +class C { + class D + val values = new Array[AnyRef](10) + values(0) match { + case name: D => println("NOK: "+ name) // the outer check on D's outer should not cause a NPE + case null => println("OK") + } +} + +object Test extends C with App -- cgit v1.2.3