KT-14581 Make FixStackAnalyzer tolerant to uninitialized values
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
fun foo(x: String): String {
|
||||
var y: String
|
||||
do {
|
||||
y = x
|
||||
} while (y != x.bar(x))
|
||||
return y
|
||||
}
|
||||
|
||||
inline fun String.bar(other: String) = this
|
||||
|
||||
fun box(): String = foo("OK")
|
||||
Reference in New Issue
Block a user