12 lines
299 B
Kotlin
Vendored
12 lines
299 B
Kotlin
Vendored
public fun foo(p: String?, y: String?): Int {
|
|
do {
|
|
// After the check, smart cast should work
|
|
if (y == null) {
|
|
"null".toString()
|
|
break
|
|
}
|
|
<!DEBUG_INFO_SMARTCAST!>y<!>.length
|
|
p!!.length
|
|
} while (true)
|
|
return y?.length ?: -1
|
|
} |