[NI] Test data to understand changes in the next commit

##KT-31969 In Progress
This commit is contained in:
Mikhail Zarechenskiy
2019-06-18 16:28:13 +03:00
parent 50ad21e388
commit ca997de6a7
9 changed files with 147 additions and 0 deletions
@@ -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
}