Files
kotlin-fork/compiler/testData/codegen/boxInline/callableReference/adaptedReferences/inlineDefault.kt
T
Alexander Udalov 1071919706 Remove backend tests on old inference
Also remove any mentions of NewInference, and rename some tests.
2021-11-09 20:07:33 +01:00

19 lines
341 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: STDLIB_TEXT
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// FILE: 1.kt
package test
inline fun foo(mkString: () -> String): String =
mkString()
inline fun bar (xs: CharArray = charArrayOf('O','K')) =
xs.concatToString()
// FILE: 2.kt
import test.*
fun box(): String = foo(::bar)