aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/resultGuidesInference.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/resultGuidesInference.scala')
-rw-r--r--tests/pos/resultGuidesInference.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/resultGuidesInference.scala b/tests/pos/resultGuidesInference.scala
new file mode 100644
index 000000000..4e02504e0
--- /dev/null
+++ b/tests/pos/resultGuidesInference.scala
@@ -0,0 +1,7 @@
+object test {
+
+ def foo[T](x: T => T): Array[T] = ???
+
+ val x: Array[Int] = foo(x => x)
+
+}