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)
14 lines
207 B
Kotlin
Vendored
14 lines
207 B
Kotlin
Vendored
// !DIAGNOSTICS: -USELESS_ELVIS
|
|
|
|
fun test() {
|
|
bar(<!ARGUMENT_TYPE_MISMATCH!>if (true) {
|
|
1
|
|
} else {
|
|
2
|
|
}<!>)
|
|
|
|
bar(<!ARGUMENT_TYPE_MISMATCH!>1 ?: 2<!>)
|
|
}
|
|
|
|
fun bar(s: String) = s
|