More tests for varargs updated
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// "???" "false"
|
||||
//ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>kotlin.Array<kotlin.String></td></tr><tr><td>Found:</td><td>kotlin.Array<kotlin.Int></td></tr></table></html>
|
||||
//ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>kotlin.Array<out kotlin.String></td></tr><tr><td>Found:</td><td>kotlin.Array<out kotlin.Int></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
|
||||
|
||||
Reference in New Issue
Block a user