Files
kotlin-fork/js/js.translator/testData/native/cases/passExtLambdaFromNative.kt
T
2015-09-18 10:14:34 +03:00

18 lines
319 B
Kotlin
Vendored

package foo
@native
internal class A(val v: String)
internal class B {
fun bar(a: A, extLambda: A.(Int, String) -> String): String = a.extLambda(7, "_rr_")
}
@native
internal fun nativeBox(b: B): String = noImpl
fun box(): String {
val r = nativeBox(B())
if (r != "foo_rr_7") return r
return "OK"
}