From d0af55ce1ffb9d77e6a604edb41cda2b955e9f02 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Tue, 8 Oct 2013 21:20:23 +0200 Subject: SI-7895 Avoid cascade of "symbol not found" in pattern matches If we can't type check the `Foo` in `case Foo(a, b) => (a, b)`, we should enter error symbols for `a` and `b` to avoid further errors being reported in the case body. --- test/files/neg/t7895.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/files/neg/t7895.scala (limited to 'test/files/neg/t7895.scala') diff --git a/test/files/neg/t7895.scala b/test/files/neg/t7895.scala new file mode 100644 index 0000000000..87a586a82d --- /dev/null +++ b/test/files/neg/t7895.scala @@ -0,0 +1,6 @@ +class A { + (null: Any) match { + // We don't want "symbol not found errors" for `a` and `b` in the case body. + case Goop(a, b, c) => Tuple2(a, b) + } +} -- cgit v1.2.3