aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/transform
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2016-07-31 17:30:46 -0700
committerGitHub <noreply@github.com>2016-07-31 17:30:46 -0700
commita0ad3f1d020cc3f3f37bc887874517ace670bf52 (patch)
tree244c2d44db0ccfbcd5d79d55fe1326da7e934e32 /src/dotty/tools/dotc/transform
parented05cbaaf0192a44c0b934eb94215dceff4f3dbe (diff)
parent3c3b32346f2c4eafe26cc9659b41ae50b0316b92 (diff)
downloaddotty-a0ad3f1d020cc3f3f37bc887874517ace670bf52.tar.gz
dotty-a0ad3f1d020cc3f3f37bc887874517ace670bf52.tar.bz2
dotty-a0ad3f1d020cc3f3f37bc887874517ace670bf52.zip
Merge pull request #1398 from dotty-staging/fix-#1269
Fix #1269: Typing and pattern matching of nested subclasses
Diffstat (limited to 'src/dotty/tools/dotc/transform')
-rw-r--r--src/dotty/tools/dotc/transform/PatternMatcher.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/transform/PatternMatcher.scala b/src/dotty/tools/dotc/transform/PatternMatcher.scala
index 974053769..92d638be9 100644
--- a/src/dotty/tools/dotc/transform/PatternMatcher.scala
+++ b/src/dotty/tools/dotc/transform/PatternMatcher.scala
@@ -763,9 +763,8 @@ class PatternMatcher extends MiniPhaseTransform with DenotTransformer {thisTrans
def outerTest(testedBinder: Symbol, expectedTp: Type): Tree = {
val expectedOuter = expectedTp.normalizedPrefix match {
- //case ThisType(clazz) => This(clazz)
//case NoType => Literal(Constant(true)) // fallback for SI-6183 todo?
- case pre => ref(pre.termSymbol)
+ case pre: SingletonType => singleton(pre)
}
// ExplicitOuter replaces `Select(q, outerSym) OBJ_EQ expectedPrefix` by `Select(q, outerAccessor(outerSym.owner)) OBJ_EQ expectedPrefix`