We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent effb9d1 commit c0057b6Copy full SHA for c0057b6
compiler/src/dotty/tools/dotc/transform/TreeChecker.scala
@@ -418,7 +418,7 @@ class TreeChecker extends Phase with SymTransformer {
418
}
419
420
override def typedSuper(tree: untpd.Super, pt: Type)(using Context): Tree =
421
- assert(tree.qual.tpe.isInstanceOf[ThisType], i"expect prefix of Super to be This, actual = ${tree.qual}")
+ assert(tree.qual.typeOpt.isInstanceOf[ThisType], i"expect prefix of Super to be This, actual = ${tree.qual}")
422
super.typedSuper(tree, pt)
423
424
override def typedTyped(tree: untpd.Typed, pt: Type)(using Context): Tree =
0 commit comments