diff options
Diffstat (limited to 'src/dotty/tools/dotc/core/Substituters.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Substituters.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Substituters.scala b/src/dotty/tools/dotc/core/Substituters.scala index e05f76cd9..fdcc077b3 100644 --- a/src/dotty/tools/dotc/core/Substituters.scala +++ b/src/dotty/tools/dotc/core/Substituters.scala @@ -163,8 +163,8 @@ trait Substituters { this: Context => final def substThis(tp: Type, from: ClassSymbol, to: Type, theMap: SubstThisMap): Type = tp match { - case tp @ ThisType(clazz) => - if (clazz eq from) to else tp + case tp: ThisType => + if (tp.cls eq from) to else tp case tp: NamedType => if (tp.symbol.isStaticOwner) tp else tp.derivedSelect(substThis(tp.prefix, from, to, theMap)) |