diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-10-08 21:20:23 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-10-09 09:32:45 +0200 |
commit | d0af55ce1ffb9d77e6a604edb41cda2b955e9f02 (patch) | |
tree | 66b9b41e4525287ef892d68ba140a804db475e25 /test/files/neg/t5903d.check | |
parent | acd77803f7da7c369f4ffdc70b5eeec4a23e35ae (diff) | |
download | scala-d0af55ce1ffb9d77e6a604edb41cda2b955e9f02.tar.gz scala-d0af55ce1ffb9d77e6a604edb41cda2b955e9f02.tar.bz2 scala-d0af55ce1ffb9d77e6a604edb41cda2b955e9f02.zip |
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.
Diffstat (limited to 'test/files/neg/t5903d.check')
-rw-r--r-- | test/files/neg/t5903d.check | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/files/neg/t5903d.check b/test/files/neg/t5903d.check index d5d3fdcc28..9b8526b7f5 100644 --- a/test/files/neg/t5903d.check +++ b/test/files/neg/t5903d.check @@ -1,7 +1,4 @@ Test_2.scala:4: error: extractor macros can only expand into extractor calls case t"$x" => println(x) ^ -Test_2.scala:4: error: not found: value x - case t"$x" => println(x) - ^ -two errors found +one error found |