Skip to content

Commit 329b6bf

Browse files
committed
Merge pull request #344 from dotty-staging/fix/refined-subtyping
Removed TrackingConstraint
2 parents a759714 + adcc240 commit 329b6bf

File tree

2 files changed

+4
-480
lines changed

2 files changed

+4
-480
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ class OrderingConstraint(private val boundsMap: ParamBounds,
288288
newConstraint(boundsMap.updated(poly, entries1), lowerMap, upperMap).init(poly)
289289
}
290290

291+
/** Split dependent parameters off the bounds for parameters in `poly`.
292+
* Update all bounds to be normalized and update ordering to account for
293+
* dependent parameters.
294+
*/
291295
private def init(poly: PolyType)(implicit ctx: Context): This = {
292296
var current = this
293297
val loBuf, hiBuf = new mutable.ListBuffer[PolyParam]

0 commit comments

Comments
 (0)