Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
intentions
/
iterateExpression
/
collectionIteratorWithComponents.kt
blob: bada0019844afb114a37339946d2b1920275097d [
file
] [
log
] [
blame
]
// WITH_RUNTIME
class
Foo
(
val id
:
Int
,
val name
:
String
)
operator
fun
Foo
.
component1
()
=
id
operator
fun
Foo
.
component2
()
=
name
operator
fun
Foo
.
component3
()
=
"$name: $id"
fun test
()
{
listOf
(
Foo
(
123
,
"def"
),
Foo
(
456
,
"abc"
))<
caret
>
}