More tests for varargs updated

This commit is contained in:
Svetlana Isakova
2014-12-10 21:21:20 +03:00
parent 7a5124215a
commit da8fdbd23e
18 changed files with 35 additions and 35 deletions
@@ -1,5 +1,5 @@
// "???" "false"
//ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>kotlin.Array&lt;kotlin.String&gt;</td></tr><tr><td>Found:</td><td>kotlin.Array&lt;kotlin.Int&gt;</td></tr></table></html>
//ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>kotlin.Array&lt;out kotlin.String&gt;</td></tr><tr><td>Found:</td><td>kotlin.Array&lt;out kotlin.Int&gt;</td></tr></table></html>
//this test checks that there is no ArrayIndexOutOfBoundsException when there are more arguments than parameters
fun <T> array1(vararg a : T) = a