Skip to content

Commit 581fee0

Browse files
committed
Fix problem dealing with symbolic import renames
1 parent f780a37 commit 581fee0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
165165
tree.pos)
166166
found
167167
}
168-
val Name = name.toTermName
168+
val Name = name.toTermName.decode
169169
selectors match {
170170
case Pair(Ident(from), Ident(Name)) :: rest =>
171171
val selName = if (name.isTypeName) from.toTypeName else from

tests/pos/seq-ordering.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import Ordering.Implicits._
2+
3+
class A {
4+
import Predef.{ implicitly => ? }
5+
6+
?[Ordering[List[Int]]]
7+
?[Ordering[IndexedSeq[(Int, String)]]]
8+
?[Ordering[Seq[Seq[Int]]]]
9+
}

0 commit comments

Comments
 (0)