Files
kotlin-fork/idea/testData/intentions/destructuringInLambda/hasShadowedVariable.kt
T
2020-10-23 15:46:53 +09:00

15 lines
208 B
Kotlin
Vendored

// WITH_RUNTIME
data class A(var x: Int)
fun convert(f: (A) -> Unit) {}
fun test() {
convert <caret>{
val x = it.x
run {
val x = 1
val z = it.x
}
}
}