Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/safecalls/falseExtension.fir.kt
T

8 lines
185 B
Kotlin
Vendored

fun String.foo(y: Int) = y
fun calc(x: List<String>?): Int {
"abc".foo(x!!.size)
// Here we should have smart cast because of x!!, despite of KT-7204 fixed
return x.size
}