mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
9 lines
185 B
Kotlin
Vendored
9 lines
185 B
Kotlin
Vendored
// "Make 'Foo' data class" "true"
|
|
// WITH_RUNTIME
|
|
class Foo(val bar: String, var baz: Int)
|
|
|
|
fun test() {
|
|
val list = listOf(Foo("A", 1))
|
|
for ((foo, bar) in list<caret>) {
|
|
}
|
|
} |