Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
box
/
localClasses
/
kt3584.kt
blob: 21cdb764faac4113589d73be866e1c2f87dce88b [
file
] [
log
] [
blame
]
fun box
():
String
{
val s
=
"captured"
;
class
A
(
val param
:
String
=
"OK"
)
{
val s2
=
s
+
param
}
if
(
A
().
s2
!=
"capturedOK"
)
return
"fail 1: ${A().s2}"
if
(
A
(
"Test"
).
s2
!=
"capturedTest"
)
return
"fail 2: ${A("
Test
").s2}"
return
"OK"
}