aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/i1639.scala
blob: 952cb5ed8cf3ea6c90a5f041a30d72695b01c7b0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                             
class Bar {
  implicit def f(implicit x: String): String = x

  implicitly[String](f) // error: divergent (turn -explaintypes on to see it)
}

class Foo(implicit val bar: String) {
  def this() = this("baz") // error: none of the alternatives match arguments
}