aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala
diff options
context:
space:
mode:
authorAbel Nieto <abeln@google.com>2017-03-16 15:49:06 -0400
committerFelix Mulder <felix.mulder@gmail.com>2017-03-17 18:54:19 +0100
commitd0621108bad55f9fc66c1c5ade9a0b7edb3117e7 (patch)
treec8374913e8a724e80cd773ef7f3438500beb125e /compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala
parent2325863c216e2bf4f7ad0f366bb80ef866ff6b79 (diff)
downloaddotty-d0621108bad55f9fc66c1c5ade9a0b7edb3117e7.tar.gz
dotty-d0621108bad55f9fc66c1c5ade9a0b7edb3117e7.tar.bz2
dotty-d0621108bad55f9fc66c1c5ade9a0b7edb3117e7.zip
Move 'invalid super qualifier' error to new error format.
As part of https://github.com/lampepfl/dotty/issues/1589, use the new error message for static super references where the qualifier isn't a parent of the class. Tested: Added unit test.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala b/compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala
index 6e774e38e..3d20583f4 100644
--- a/compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala
+++ b/compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala
@@ -298,7 +298,7 @@ trait TypeAssigner {
case p :: Nil =>
p
case Nil =>
- errorType(em"$mix does not name a parent class of $cls", tree.pos)
+ errorType(SuperQualMustBeParent(mix, cls), tree.pos)
case p :: q :: _ =>
errorType("ambiguous parent class qualifier", tree.pos)
}