Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fcbc6b84598bef4d4ca95c593070c2a5cba1da35
/
.
/
compiler
/
testData
/
diagnostics
/
testsWithStdLib
/
shadowingInDestructuring.kt
blob: 4a54d3d9c3e614a2cf441c801f79a75247468ec9 [
file
]
// FIR_IDENTICAL
data
class
XY
(
val x
:
Int
,
val y
:
Int
)
fun foo
(
list
:
List
<
XY
>)
{
for
((
x1
,
y1
)
in
list
)
{
for
((
x2
,
y2
)
in
list
)
{
if
(
x1
==
y2
&&
x2
==
y1
)
return
}
list
.
map
{
(
x3
,
y3
)
->
x3
+
y3
}
}
}