Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0c8f3faeecbeecb0d1430ef2b86dd192a029711c
/
.
/
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
}