diff options
Diffstat (limited to 'src/dotty/tools/dotc/core/TypeApplications.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/TypeApplications.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/TypeApplications.scala b/src/dotty/tools/dotc/core/TypeApplications.scala index 6fc1fb9dc..fc8876d09 100644 --- a/src/dotty/tools/dotc/core/TypeApplications.scala +++ b/src/dotty/tools/dotc/core/TypeApplications.scala @@ -364,9 +364,9 @@ class TypeApplications(val self: Type) extends AnyVal { val sym = self.parent.classSymbol if (sym.isLambdaTraitOBS) return sym.typeParams } - val precedingParams = self.parent.typeParams + val precedingParams = self.parent.typeParams.filterNot(_.memberName == self.refinedName) if (Config.newHK && self.isTypeParam) precedingParams :+ self - else precedingParams.filterNot(_.memberName == self.refinedName) + else precedingParams case self: RecType => self.parent.typeParams case self: SingletonType => |