aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2017-03-30 21:52:09 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2017-03-30 21:52:09 +0200
commit88bac0ec158454b683eb04919da91838b627e424 (patch)
tree3cb54195e2fce7c127daa9ea2b5a3a22eb035285 /compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala
parentf75caad00256db52bbd3310f245e51d23c2a76cc (diff)
downloaddotty-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.scala4
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