aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i739.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/i739.scala')
-rw-r--r--tests/pos/i739.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/i739.scala b/tests/pos/i739.scala
index 340478f4f..61fed4e5d 100644
--- a/tests/pos/i739.scala
+++ b/tests/pos/i739.scala
@@ -3,8 +3,15 @@ class Foo
object Test {
def foo[T](x: T)(implicit ev: T): T = ???
+ class Fn[T] {
+ def invoke(implicit ev: T): T = ???
+ }
+
+ def bar[T](x: T): Fn[T] = ???
+
def test: Unit = {
implicit val evidence: Foo = new Foo
foo(new Foo)
+ bar(new Foo).invoke
}
}