We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c602727 commit ab66e26Copy full SHA for ab66e26
src/compiler/scala/tools/nsc/transform/Erasure.scala
@@ -825,8 +825,9 @@ abstract class Erasure extends InfoTransform
825
case Ident(_) | Select(_, _) =>
826
if (tree1.symbol.isOverloaded) {
827
val first = tree1.symbol.alternatives.head
828
+ val firstTpe = first.tpe
829
val sym1 = tree1.symbol.filter {
- alt => alt == first || !(first.tpe looselyMatches alt.tpe)
830
+ alt => alt == first || !(firstTpe looselyMatches alt.tpe)
831
}
832
if (tree.symbol ne sym1) {
833
tree1 setSymbol sym1 setType sym1.tpe
0 commit comments