Skip to content

Commit 1750957

Browse files
Update compiler/src/dotty/tools/dotc/core/TypeApplications.scala
Co-authored-by: Nicolas Stucki <[email protected]>
1 parent 5e56416 commit 1750957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ object TypeApplications {
4545
private def weakerBounds(tp: HKTypeLambda, tparams: List[ParamInfo])(using Context): Boolean =
4646
val onlyEmptyBounds = tp.typeParams.forall(_.paramInfo == TypeBounds.empty)
4747
onlyEmptyBounds
48-
// Note: this pre-test helps efficiency. It is also necessary since in some cases
48+
// Note: this pre-test helps efficiency. It is also necessary to workaround #9965 since in some cases
4949
// tparams is empty. This can happen when we change the owners of inlined local
5050
// classes in mapSymbols. See pos/reference/delegates.scala for an example.
5151
// In this case, we can still return true if we know that the hk lambda bounds

0 commit comments

Comments
 (0)