We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 792b0c6 commit 65ceaffCopy full SHA for 65ceaff
compiler/src/dotty/tools/dotc/transform/TreeChecker.scala
@@ -414,7 +414,7 @@ class TreeChecker extends Phase with SymTransformer {
414
}
415
416
override def typedSuper(tree: untpd.Super, pt: Type)(using Context): Tree =
417
- assert(tree.qual.isInstanceOf[untpd.This], i"expect prefix of Super to be This, actual = ${tree.qual}")
+ assert(tree.qual.tpe.isInstanceOf[ThisType], i"expect prefix of Super to be This, actual = ${tree.qual}")
418
super.typedSuper(tree, pt)
419
420
private def checkOwner(tree: untpd.Tree)(using Context): Unit = {
0 commit comments