aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/pos/conformsWild.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pos/conformsWild.scala b/tests/pos/conformsWild.scala
new file mode 100644
index 000000000..cfc10d92d
--- /dev/null
+++ b/tests/pos/conformsWild.scala
@@ -0,0 +1,11 @@
+object Test {
+
+ val x: Function1[_, _] = (x: String) => 1
+
+ val y: Function1[_, _] = x => 1
+ val y0: Function1[_, _] = x => x
+ val y1: Function1[_, Nothing] = x => x
+
+ val z: (_, _) = (1, 2)
+
+}