Skip to content

Commit adcc240

Browse files
committed
Removed TrackingConstraint
It's too hard to keep fixes up-to-date in both constraint implementations. And anyway, OrderingConstraint is it for now. Also added comment suggested by @smarter.
1 parent 70e55d2 commit adcc240

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)