11 lines
299 B
Kotlin
Vendored
11 lines
299 B
Kotlin
Vendored
public fun foo(x: String?): Int {
|
|
var y: Any
|
|
while (true) {
|
|
y = if (x == null) break else x
|
|
}
|
|
// In future we can infer this initialization
|
|
<!UNINITIALIZED_VARIABLE!>y<!>.hashCode()
|
|
// x is null because of the break
|
|
return x.<!INAPPLICABLE_CANDIDATE!>length<!>
|
|
}
|