Skip to content

Commit

Permalink
Fix problem dealing with symbolic import renames
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Dec 20, 2015
1 parent f780a37 commit 581fee0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dotty/tools/dotc/typer/Typer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
tree.pos)
found
}
val Name = name.toTermName
val Name = name.toTermName.decode
selectors match {
case Pair(Ident(from), Ident(Name)) :: rest =>
val selName = if (name.isTypeName) from.toTypeName else from
Expand Down
9 changes: 9 additions & 0 deletions tests/pos/seq-ordering.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Ordering.Implicits._

class A {
import Predef.{ implicitly => ? }

?[Ordering[List[Int]]]
?[Ordering[IndexedSeq[(Int, String)]]]
?[Ordering[Seq[Seq[Int]]]]
}

0 comments on commit 581fee0

Please sign in to comment.