summaryrefslogtreecommitdiff
path: root/test/files/run/type-currying.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/type-currying.scala')
-rw-r--r--test/files/run/type-currying.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/type-currying.scala b/test/files/run/type-currying.scala
index 717e0763a3..f9764c64f0 100644
--- a/test/files/run/type-currying.scala
+++ b/test/files/run/type-currying.scala
@@ -43,3 +43,16 @@ object Test {
assert(n0 == n1)
}
}
+
+class A {
+ object Foo {
+ def apply[T] = Bar
+ }
+ object Bar {
+ def apply() = Foo
+ }
+
+ def f() = Foo
+ def g = f()[Int]()[String]()
+ def h = Foo[Foo.type]()[Foo.type]()
+}