Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
diagnostics
/
testsWithStdLib
/
shadowingInDestructuring.kt
blob: 4a54d3d9c3e614a2cf441c801f79a75247468ec9 [
file
] [
log
] [
blame
]
// 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
}
}
}