Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ed7ee67e4e1513f9b3ba9587b6d6e950e7a1da7f
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
defaultArguments
/
noEmptyArray.kt
blob: ec0b3c68a806ec961d061717b802e1a228745a1f [
file
]
// There is one ANEWARRAY instruction here, to generate the default parameter value.
fun
default
(
vararg s
:
String
=
arrayOf
(
"OK"
))
=
s
[
0
]
// This call on the other hand shouldn't allocate anything.
fun callDefault
()
=
default
()
// 1 ANEWARRAY