diff options
author | Martin Odersky <odersky@gmail.com> | 2016-07-19 17:47:40 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-07-19 17:47:40 +0200 |
commit | 50c75f0c506799b7805ea0276cc21edfe806abe3 (patch) | |
tree | 907bb7846c8805db5cdbc4c5d6568ac6ddf68817 /tests | |
parent | a8f7e6cf691f96f8e3049be282c4c11b38ac6f71 (diff) | |
download | dotty-50c75f0c506799b7805ea0276cc21edfe806abe3.tar.gz dotty-50c75f0c506799b7805ea0276cc21edfe806abe3.tar.bz2 dotty-50c75f0c506799b7805ea0276cc21edfe806abe3.zip |
Add test case
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/conformsWild.scala | 11 |
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) + +} |