Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
defaultArguments
/
noEmptyArray.kt
blob: ec0b3c68a806ec961d061717b802e1a228745a1f [
file
] [
log
] [
blame
]
// 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