Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
box
/
multiDecl
/
ValCapturedInFunctionLiteral.kt
blob: 4bf9bdcd08c2fa919404b97dc82f4235e7abb0ce [
file
] [
log
] [
blame
]
class
A
{
operator
fun component1
()
=
1
operator
fun component2
()
=
2
}
fun box
()
:
String
{
val
(
a
,
b
)
=
A
()
val run
=
{
a
}
return
if
(
run
()
==
1
&&
b
==
2
)
"OK"
else
"fail"
}