blob: f3ee0ad03ffce980107864eab2556a4af5ea233d [file]
// TARGET_BACKEND: JS_IR, JS_IR_ES6
// FILE: lib.kt
inline fun jsUpper(c: Char) = c.toString().asDynamic().toUpperCase().unsafeCast<String>()
inline fun upper(c: Char): Char = jsUpper(c)[0]
// FILE: main.kt
// EXPECT_GENERATED_JS: function=test expect=tempVarDeclOnAssignmentTest.js
fun test(a: Char, b: Char): String {
return "${upper(a)}${upper(b)}"
}
fun box() = test('o', 'k')