File tree 2 files changed +2
-4
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,6 @@ object Inferencing {
152
152
constraint.entry(param) match {
153
153
case TypeBounds (lo, hi)
154
154
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
157
155
typr.println(i " replace singleton $param := ${constraint.fullLowerBound(param)}" )
158
156
ctx.typerState.constraint = constraint.replace(param,
159
157
ctx.typeComparer.approximation(param, fromBelow = true ))
Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ object X {
12
12
}
13
13
14
14
object app extends App {
15
- implicitly[Tc2 [X ]] // ok
16
- implicitly[Tc1 [X ]]// (X.Tc2Instance[Tc2]) // fails
15
+ implicitly[Tc2 [X ]]
16
+ implicitly[Tc1 [X ]]
17
17
}
You can’t perform that action at this time.
0 commit comments