Skip to content

Commit e43da04

Browse files
committed
Fix bug computing typeParams for hk types
Arg bounds do not count is bindings.
1 parent 859cfe5 commit e43da04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dotty/tools/dotc/core/TypeApplications.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ class TypeApplications(val self: Type) extends AnyVal {
204204
if (lam.exists) lam.typeParams else Nil
205205
}
206206
case self: RefinedType =>
207-
self.parent.typeParams.filterNot(_.name == self.refinedName)
207+
val hkParams = self.hkTypeParams
208+
if (hkParams.nonEmpty) hkParams
209+
else self.parent.typeParams.filterNot(_.name == self.refinedName)
208210
case self: SingletonType =>
209211
Nil
210212
case self: TypeProxy =>

0 commit comments

Comments
 (0)