aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/i1777.scala
blob: 381ff9139a1c65929223009bf74f244276e8dea9 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                            
object Main extends App {
  import scala.collection.immutable._
  case class Foo(s: String)
  {
    implicit val orderingS: Ordering[String] = Ordering[String] // Crash
    val tree = TreeMap.empty ++ (1 to 100).map { i => Foo(i.toString) -> i }
    println(tree.getClass)
  }
}