[FIR] Fix CFG/DFA for delegate properties within PCLA
^KT-65262 Fixed
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
// WITH_STDLIB
|
||||
// ISSUE: KT-65262
|
||||
|
||||
interface Consumer<in T>
|
||||
|
||||
public fun <T> buildConsumer(
|
||||
block: (Consumer<T>) -> Unit
|
||||
): T = "OK" as T
|
||||
|
||||
fun expectConsumerString(x: Consumer<String>) {}
|
||||
|
||||
fun box() =
|
||||
try {
|
||||
buildConsumer { x ->
|
||||
val y by lazy {
|
||||
expectConsumerString(x)
|
||||
"OK"
|
||||
}
|
||||
|
||||
if (y.length != 2) throw RuntimeException("fail 1")
|
||||
}
|
||||
} finally {
|
||||
}
|
||||
Reference in New Issue
Block a user