diff options
author | Martin Odersky <odersky@gmail.com> | 2015-06-19 15:31:16 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-06-19 15:31:16 +0200 |
commit | 0bbc85895807aa4df05f46b1f0794a8c2fc4d095 (patch) | |
tree | 4bbcadef28c3bb9c586260cdd5aa104727343524 /tests/pos | |
parent | faa7078fffb868c22f783388df0a6d80f64ee0c1 (diff) | |
download | dotty-0bbc85895807aa4df05f46b1f0794a8c2fc4d095.tar.gz dotty-0bbc85895807aa4df05f46b1f0794a8c2fc4d095.tar.bz2 dotty-0bbc85895807aa4df05f46b1f0794a8c2fc4d095.zip |
Add test that succeeds
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/array-overload.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos/array-overload.scala b/tests/pos/array-overload.scala new file mode 100644 index 000000000..737ea0ec7 --- /dev/null +++ b/tests/pos/array-overload.scala @@ -0,0 +1,8 @@ +class Test { + object A { + def apply(x: Byte, xs: Byte*): Array[Byte] = ??? + def apply(x: Int, xs: Int*): Array[Int] = ??? + } + + val x: Array[Byte] = A.apply(1, 2) +} |