mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
9 lines
187 B
Kotlin
Vendored
9 lines
187 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))
|
|
list.forEach { (foo<caret>, bar) ->
|
|
}
|
|
} |