Coroutines: Fix RedundantLocalsEliminationMethodTransformer
- Take control flow into account when collecting usage information - Don't remove stores to local variables
This commit is contained in:
committed by
Ilmir Usmanov
parent
3113281e2d
commit
5cdf053c8e
@@ -0,0 +1,7 @@
|
||||
suspend fun f(x: Any?) {
|
||||
x?.let { Unit } ?: Unit
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user