aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg-with-implicits/sensitive2.scala
blob: e0cf515bd078ea99cb344b59c5cffcdd6b4ee286 (plain) (blame)
1
2
3
4
5
6
7
8
object Test {
  class Foo[A](z: A)
  implicit def foo1[A](a: A): Foo[A] = new Foo(a)
  implicit def foo2(a: Any): Foo[String] = new Foo("123")

  val a: Foo[_] = "abc"

}