Skip to content

Commit 36f2c7c

Browse files
committed
Drop no-longer applicable comments
1 parent 0c1c596 commit 36f2c7c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

compiler/src/dotty/tools/dotc/typer/Inferencing.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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))

tests/pos/i6385.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ object X {
1212
}
1313

1414
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]]
1717
}

0 commit comments

Comments
 (0)