diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2017-03-30 21:52:09 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2017-03-30 21:52:09 +0200 |
commit | 88bac0ec158454b683eb04919da91838b627e424 (patch) | |
tree | 3cb54195e2fce7c127daa9ea2b5a3a22eb035285 /compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala | |
parent | f75caad00256db52bbd3310f245e51d23c2a76cc (diff) | |
download | dotty-88bac0ec158454b683eb04919da91838b627e424.tar.gz dotty-88bac0ec158454b683eb04919da91838b627e424.tar.bz2 dotty-88bac0ec158454b683eb04919da91838b627e424.zip |
Fix #2165, emit outerChecks on ThisType
ThisType doesn't have a termSymbol.
And the check is actually too strong,
and not needed.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala b/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala index 7576ccc05..e9bee96ca 100644 --- a/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala +++ b/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala @@ -863,9 +863,9 @@ class PatternMatcher extends MiniPhaseTransform with DenotTransformer { override lazy val introducedRebindings = NoRebindings def outerTestNeeded = { - val np = expectedTp.normalizedPrefix + /*val np = expectedTp.normalizedPrefix val ts = np.termSymbol - (ts ne NoSymbol) && needsOuterTest(expectedTp, testedBinder.info, ctx.owner) + (ts ne NoSymbol) && */needsOuterTest(expectedTp, testedBinder.info, ctx.owner) } // the logic to generate the run-time test that follows from the fact that |