2ead2fba08
Tests check language feature `ProhibitVarargAsArrayAfterSamArgument`
20 lines
465 B
Plaintext
Vendored
20 lines
465 B
Plaintext
Vendored
// FILE: test.before.kt
|
|
// "Add a spread operator before an array passing as vararg" "false"
|
|
// ACTION: Add explicit type arguments
|
|
// ACTION: Introduce import alias
|
|
// ACTION: Introduce local variable
|
|
// ACTION: Put arguments on separate lines
|
|
// LANGUAGE_VERSION: 1.3
|
|
// WITH_RUNTIME
|
|
|
|
fun main() {
|
|
Test.foo({}, <caret>arrayOf())
|
|
}
|
|
|
|
// FILE: Test.java
|
|
public class Test {
|
|
public static String foo(Runnable r, String... strs) {
|
|
return null;
|
|
}
|
|
}
|