6735cc8937
#KT-36055 Fixed
12 lines
238 B
Kotlin
Vendored
12 lines
238 B
Kotlin
Vendored
fun x(): Boolean { return true }
|
|
|
|
public fun foo(pp: String?): Int {
|
|
var p = pp
|
|
do {
|
|
p!!.length
|
|
if (p == "abc") break
|
|
p = null
|
|
} while (!x())
|
|
// Smart cast is NOT possible here
|
|
return p.length
|
|
} |