summaryrefslogtreecommitdiff
path: root/test/files/neg/t556.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t556.scala')
-rw-r--r--test/files/neg/t556.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t556.scala b/test/files/neg/t556.scala
new file mode 100644
index 0000000000..b0113258c9
--- /dev/null
+++ b/test/files/neg/t556.scala
@@ -0,0 +1,4 @@
+object Main extends App {
+ def f(a:Int=>Int):Int = a(4)
+ def g:Int = f((x,y)=>x)
+}