// IGNORE_BACKEND_K1: JS_IR // IGNORE_BACKEND_K2: JS_IR // IGNORE_BACKEND: JS_IR_ES6 // TODO: Unmute when extension functions are supported in external declarations. // IGNORE_BACKEND: JS // IGNORE_BACKEND: WASM package foo external class A(v: String) { val v: String } external fun bar(a: A, extLambda: A.(Int, String) -> String): String = definedExternally fun box(): String { val a = A("test") val r = bar(a) { i, s -> "${this.v} $i $s"} if (r != "test 4 boo") return r return "OK" }