[NI] Test data to understand changes in the next commit
##KT-31969 In Progress
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
||||
// !WITH_NEW_INFERENCE
|
||||
|
||||
open class View
|
||||
|
||||
fun test() {
|
||||
val target = foo<View>() ?: foo() <!NI;USELESS_ELVIS!>?: run {}<!>
|
||||
}
|
||||
|
||||
fun <T : View> foo(): T? {
|
||||
return null
|
||||
}
|
||||
Reference in New Issue
Block a user