aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i2006.scala
blob: f1b48b0113844c406c6cc39ba92877312f244093 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
object Test {

  inline def foo(f: ImplicitFunction1[Int, Int]): AnyRef = f // error
  inline def bar(f: ImplicitFunction1[Int, Int]) = f // error

  def main(args: Array[String]) = {
    foo(implicit thisTransaction => 43)
    bar(implicit thisTransaction => 44)
  }
}