Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
box
/
lazyCodegen
/
safeCallAndArray.kt
blob: 59b14a96e317c4791f0f8deb94b74d91dc4c6f1e [
file
] [
log
] [
blame
]
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: NULLABLE_BOX_FUNCTION
class
C
{
fun calc
()
:
String
{
return
"OK"
}
}
fun box
():
String
?
{
val c
:
C
?
=
C
()
val arrayList
=
arrayOf
(
c
?.
calc
(),
""
)
return
arrayList
[
0
]
}