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 fc42734 commit e9a3acaCopy full SHA for e9a3aca
src/dotty/tools/dotc/typer/TypeAssigner.scala
@@ -46,10 +46,9 @@ trait TypeAssigner {
46
// TODO: measure the cost of using `existsPart`, and if necessary replace it
47
// by a `TypeAccumulator` where we have set `stopAtStatic = true`.
48
tp existsPart {
49
- case tp: NamedType =>
50
- forbidden contains tp.symbol
51
- case _ =>
52
- false
+ case tp: NamedType => forbidden contains tp.symbol
+ case tp: ThisType => forbidden contains tp.cls
+ case _ => false
53
}
54
def apply(tp: Type): Type = tp match {
55
case tp: TermRef if toAvoid(tp) && variance > 0 =>
0 commit comments