aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i739.scala
blob: 340478f4fa5cfa78d53ffc6b970e550637d48001 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class Foo

object Test {
  def foo[T](x: T)(implicit ev: T): T = ???

  def test: Unit = {
    implicit val evidence: Foo = new Foo
    foo(new Foo)
  }
}