Files
kotlin-fork/compiler/testData/diagnostics/tests/labels/labelToOuterLambda.kt
T
2023-04-17 10:21:25 +00:00

22 lines
385 B
Kotlin
Vendored

// FIR_IDENTICAL
// ISSUE: KT-57880
fun outerLambda(action: String.() -> Unit) {}
var lambda: Int.() -> Unit = {}
fun consume(arg: String) {}
fun consumeInt(arg: Int) {}
fun main() {
outerLambda {
lambda = {
consume(this@outerLambda)
}
}
outerLambda {
lambda = innerLambda@{
consumeInt(this@innerLambda)
}
}
}