summaryrefslogtreecommitdiff
path: root/test-nsc/files/pos/maxim1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test-nsc/files/pos/maxim1.scala')
-rwxr-xr-xtest-nsc/files/pos/maxim1.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test-nsc/files/pos/maxim1.scala b/test-nsc/files/pos/maxim1.scala
new file mode 100755
index 0000000000..58916beb8a
--- /dev/null
+++ b/test-nsc/files/pos/maxim1.scala
@@ -0,0 +1,5 @@
+object test {
+ def f(x: Int)(y: Int) = x + y;
+ def y: Int => Int = f(2);
+ def main = y(1);
+}