aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-07-19 10:31:56 -0700
committerGitHub <noreply@github.com>2016-07-19 10:31:56 -0700
commit0536d1f3b77fd8332bf696a99cc1aefc82e8bf41 (patch)
treebc3d9f8234b158be0a331435f42d7f7969d0aa72 /tests/pos
parent2193100a4617033d75f0b924a5347a02d5e8481d (diff)
parent50c75f0c506799b7805ea0276cc21edfe806abe3 (diff)
downloaddotty-0536d1f3b77fd8332bf696a99cc1aefc82e8bf41.tar.gz
dotty-0536d1f3b77fd8332bf696a99cc1aefc82e8bf41.tar.bz2
dotty-0536d1f3b77fd8332bf696a99cc1aefc82e8bf41.zip
Merge pull request #1402 from dotty-staging/fix-wildcard-protos
Fix wildcard protos
Diffstat (limited to 'tests/pos')
-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)
+
+}