summaryrefslogtreecommitdiff
path: root/test/files/neg/t5839.scala
blob: d3a5d4b25f14c0e35291a32d37662b5c3b4443ba (plain) (blame)
1
2
3
4
5
6
7
object Test {
  def goo[T](x: Int => T): T = x(1)
  implicit def f(x: Int): String = ""
  def foo(x: Int): Int = x + 1
  val x: String = goo(foo _)
  def foo(x: String => String) = 1
}