Skip to content

Commit

Permalink
Small cleanup in Type API use (scala#16444)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand authored Nov 30, 2022
2 parents ba2be40 + 2c5baf1 commit 72c4ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Typer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
if sym1.isTerm then
sym1.isStableMember &&
sym2.isStableMember &&
sym1.owner.thisType.select(name, sym1) =:= sym2.owner.thisType.select(name, sym2)
sym1.termRef =:= sym2.termRef
else
(sym1.isAliasType || sym2.isAliasType) && d1.info =:= d2.info
}
Expand Down

0 comments on commit 72c4ffd

Please sign in to comment.