mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 00:21:32 +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.
7 lines
126 B
Kotlin
7 lines
126 B
Kotlin
data class A(var x: Int, y: String)
|
|
|
|
fun foo(a: A) {
|
|
a.component1() : Int
|
|
a.<!UNRESOLVED_REFERENCE!>component2<!>()
|
|
}
|