Files
kotlin-fork/compiler/testData/codegen/box/callableReference/arrayOfNulls.kt
T
vladislav.grechko e5763a692f Substitute type arguments to return type of inlined function references
Such substitution is crucial on codegen stage if the return type is
reified (e.g. for `Array`)

^KT-59507: Fixed
^KT-59281: Fixed
2023-07-24 22:11:59 +00:00

8 lines
162 B
Kotlin
Vendored

// WITH_STDLIB
// KT-59544
// SKIP_SOURCEMAP_REMAPPING
inline fun h(b: (Int) -> Array<String?>) = b(1).size
fun box(): String = ('N' + h(::arrayOfNulls)) + "K"