2ecba6ac39
This directive anyway does not make test run twice with OI, and with NI It only once run the test with specific settings (// LANGUAGE) and ignores irrelevant (OI or NI tags)
22 lines
414 B
Kotlin
Vendored
22 lines
414 B
Kotlin
Vendored
// !LANGUAGE: +NewInference
|
|
// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER
|
|
|
|
fun takeArray(array: Array<String>) {}
|
|
|
|
fun test() {
|
|
"foo bar".<!UNRESOLVED_REFERENCE!>split<!>([""])
|
|
<!UNRESOLVED_REFERENCE!>unresolved<!>([""])
|
|
takeArray([""])
|
|
val v = [""]
|
|
[""]
|
|
[1, 2, 3].size
|
|
}
|
|
|
|
fun baz(arg: Array<Int> = []) {
|
|
if (true) ["yes"] else {["no"]}
|
|
}
|
|
|
|
class Foo(
|
|
val v: Array<Int> = []
|
|
)
|