mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Reuse existing (but not used) VALUE_PARAMETER_AS_PROPERTY in BindingContext to store mapping from constructor's value parameters to property descriptors. Create a new slice DATA_CLASS_COMPONENT_FUNCTION to store mapping from constructor's value parameters to generated componentN functions.
9 lines
135 B
Kotlin
9 lines
135 B
Kotlin
data class A(val x: Int, val y: String)
|
|
|
|
fun foo(arr: Array<A>) {
|
|
for ((b, c) in arr) {
|
|
b : Int
|
|
c : String
|
|
}
|
|
}
|