aea2e8052a
Make sure SENSELESS_COMPARISON is absent in this case. ^KT-64089 Obsolete Merge-request: KT-MR-13754 Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com>
17 lines
255 B
Kotlin
Vendored
17 lines
255 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// ISSUE: KT-64089
|
|
|
|
fun <T> contentReturner(f: () -> T): T {
|
|
return null <!UNCHECKED_CAST!>as T<!>
|
|
}
|
|
|
|
fun main(number: Int? = null) {
|
|
contentReturner {
|
|
"".apply {
|
|
number!!
|
|
}
|
|
}
|
|
|
|
number != null
|
|
}
|