Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
946dff8bda9fd326d2b6c18f10c7545ebed12ae1
/
.
/
compiler
/
testData
/
codegen
/
box
/
labels
/
labeledDeclarations.kt
blob: 5b407c979fbc334cfdc54dc092fe2609553e6d7d [
file
]
data
class
A
(
val a
:
Int
,
val b
:
Int
)
fun box
()
:
String
{
a@ val x
=
1
b@ fun a
()
=
2
c@ val
(
z
,
z2
)
=
A
(
1
,
2
)
if
(
x
!=
1
)
return
"fail 1"
if
(
a
()
!=
2
)
return
"fail 2"
if
(
z
!=
1
||
z2
!=
2
)
return
"fail 3"
return
"OK"
}