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)
13 lines
178 B
Kotlin
Vendored
13 lines
178 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
|
|
open class View
|
|
|
|
fun test() {
|
|
val target = foo<View>() ?: foo() ?: run {}
|
|
}
|
|
|
|
fun <T : View> foo(): T? {
|
|
return null
|
|
}
|