mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
10 lines
227 B
Kotlin
10 lines
227 B
Kotlin
data class A(foo: String, val bar: Int, other: Long) {
|
|
val foo = foo
|
|
val other = other
|
|
}
|
|
|
|
fun test(a: A) {
|
|
a.component1()
|
|
a.<!UNRESOLVED_REFERENCE!>component2<!>()
|
|
a.<!UNRESOLVED_REFERENCE!>component3<!>()
|
|
} |