[FIR] Ensure KT-64089 works

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>
This commit is contained in:
Nikolay Lunyak
2024-01-05 14:15:06 +00:00
committed by Space Team
parent b6d373d8e5
commit aea2e8052a
6 changed files with 46 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
// 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
}