Skip to content

Commit

Permalink
Drop no-longer applicable comments
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky authored and smarter committed May 17, 2019
1 parent 4422483 commit 8332964
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions compiler/src/dotty/tools/dotc/typer/Inferencing.scala
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ object Inferencing {
constraint.entry(param) match {
case TypeBounds(lo, hi)
if (hi frozen_<:< lo) =>
// if lower or upper is nonEmpty, the full bounds can't be equal, since
// common type params in lower and upper are eliminated through unification
val inst = ctx.typeComparer.approximation(param, fromBelow = true)
typr.println(i"replace singleton $param := $inst")
ctx.typerState.constraint = constraint.replace(param, inst)
Expand Down
4 changes: 2 additions & 2 deletions tests/pos/i6385.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ object X {
}

object app extends App {
implicitly[Tc2[X]] // ok
implicitly[Tc1[X]]//(X.Tc2Instance[Tc2]) // fails
implicitly[Tc2[X]]
implicitly[Tc1[X]]
}

0 comments on commit 8332964

Please sign in to comment.