Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
box
/
extensionFunctions
/
simple.kt
blob: d2705a7c6970839222233c8aa7283cd155e52769 [
file
]
// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME
fun
StringBuilder
.
first
()
=
this
.
get
(
0
)
fun foo
()
=
StringBuilder
(
"foo"
).
first
()
fun box
()
=
if
(
foo
()
==
'f'
)
"OK"
else
"Fail ${foo()}"