aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools')
-rw-r--r--src/dotty/tools/dotc/typer/Typer.scala7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala
index 08ed04286..e5509d50f 100644
--- a/src/dotty/tools/dotc/typer/Typer.scala
+++ b/src/dotty/tools/dotc/typer/Typer.scala
@@ -332,7 +332,12 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
case pt: SelectionProto if pt.name == nme.CONSTRUCTOR => true
case _ => false
}
- assignType(cpy.Super(tree)(qual1, tree.mix), qual1, inConstrCall)
+ pt match {
+ case pt: SelectionProto if pt.name.isTypeName =>
+ qual1 // don't do super references for types; they are meaningless anyway
+ case _ =>
+ assignType(cpy.Super(tree)(qual1, tree.mix), qual1, inConstrCall)
+ }
}
def typedLiteral(tree: untpd.Literal)(implicit ctx: Context) = track("typedLiteral") {