Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
codegen
/
box
/
defaultArguments
/
callDefaultFromInitializer.kt
blob: 939ab698ad9cbdd81b6f863f1678b55fe7f83425 [
file
]
fun foo
(
x
:
Int
=
42
)
=
x
class
C
{
val s
:
String
init
{
val x
=
foo
()
if
(
x
==
42
)
s
=
"OK"
else
s
=
"fail"
}
}
fun box
():
String
{
return
C
().
s
}