Skip to content

Commit

Permalink
remove extraneous inequality check
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Simpson committed Jan 31, 2021
1 parent 48b6533 commit 8e84855
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ abstract class Inspector(protected val shift: Int) extends InspectorBase {
log(s" -------- about to inspect $tpe --------")
val v = inspectTree(uns) match {
// if NameReference was returned by the TypeBounds branch of inspectTType, the type name is a stand-in and should be fixed
case NameReference(_, a@Boundaries.Defined(lo, hi), b) if lo != hi =>
NameReference(SymName.SymTypeName(uns.tpe.dealias.typeSymbol.name), a, b)
case NameReference(_, boundaries, prefix) =>
NameReference(SymName.SymTypeName(uns.tpe.dealias.typeSymbol.name), boundaries, prefix)
case x => x
}
log(s" -------- done inspecting $tpe --------")
Expand Down

0 comments on commit 8e84855

Please sign in to comment.