File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,6 @@ object Inferencing {
152152 constraint.entry(param) match {
153153 case TypeBounds (lo, hi)
154154 if (hi frozen_<:< lo) =>
155- // if lower or upper is nonEmpty, the full bounds can't be equal, since
156- // common type params in lower and upper are eliminated through unification
157155 typr.println(i " replace singleton $param := ${constraint.fullLowerBound(param)}" )
158156 ctx.typerState.constraint = constraint.replace(param,
159157 ctx.typeComparer.approximation(param, fromBelow = true ))
Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ object X {
1212}
1313
1414object app extends App {
15- implicitly[Tc2 [X ]] // ok
16- implicitly[Tc1 [X ]]// (X.Tc2Instance[Tc2]) // fails
15+ implicitly[Tc2 [X ]]
16+ implicitly[Tc1 [X ]]
1717}
You can’t perform that action at this time.
0 commit comments