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 859cfe5 commit e43da04Copy full SHA for e43da04
src/dotty/tools/dotc/core/TypeApplications.scala
@@ -204,7 +204,9 @@ class TypeApplications(val self: Type) extends AnyVal {
204
if (lam.exists) lam.typeParams else Nil
205
}
206
case self: RefinedType =>
207
- self.parent.typeParams.filterNot(_.name == self.refinedName)
+ val hkParams = self.hkTypeParams
208
+ if (hkParams.nonEmpty) hkParams
209
+ else self.parent.typeParams.filterNot(_.name == self.refinedName)
210
case self: SingletonType =>
211
Nil
212
case self: TypeProxy =>
0 commit comments