summaryrefslogtreecommitdiff
path: root/test/files/pos/t2712-1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t2712-1.scala')
-rw-r--r--test/files/pos/t2712-1.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t2712-1.scala b/test/files/pos/t2712-1.scala
new file mode 100644
index 0000000000..4f84c9df5e
--- /dev/null
+++ b/test/files/pos/t2712-1.scala
@@ -0,0 +1,9 @@
+package test
+
+// Original test case from,
+//
+// https://issues.scala-lang.org/browse/SI-2712
+object Test {
+ def meh[M[_], A](x: M[A]): M[A] = x
+ meh{(x: Int) => x} // solves ?M = [X] Int => X and ?A = Int ...
+}