diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-08-16 14:18:20 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-09-23 16:27:33 +1000 |
commit | 0022dccfde2f2d1e383254d8b5677c2468b57701 (patch) | |
tree | 70e0fa624cebc58e268aaacb6a7da3417721af15 /test/files/neg/t750.check | |
parent | 5720e97b95da57c9549698a9038efb79092394ad (diff) | |
download | scala-0022dccfde2f2d1e383254d8b5677c2468b57701.tar.gz scala-0022dccfde2f2d1e383254d8b5677c2468b57701.tar.bz2 scala-0022dccfde2f2d1e383254d8b5677c2468b57701.zip |
[backport] SI-7756 Uncripple refchecks in case bodies
In 65340ed4ad2e, parts of RefChecks were disabled when
we traversed into the results of the new pattern matcher.
Similar logic existed for the old pattern matcher, but in
that case the Match / CaseDef nodes still existed in the tree.
The new approach was too broad: important checks no longer
scrutinized the body of cases.
This commit turns the checks back on when it finds the remnants
of a case body, which appears as an application to a label def.
Conflicts:
src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
Cherry pick of 3df1d77fc984b976efa68098206e801cf3b83a9e
Diffstat (limited to 'test/files/neg/t750.check')
0 files changed, 0 insertions, 0 deletions