Files
kotlin-fork/compiler/testData/diagnostics/wasmTests/jsInterop/jsFun.kt
T
Svyatoslav Kuzmich 7ba8f7cce2 Revert "[Wasm] Deprecate @JsFun with warning"
Reason: Design of js(code) replacement is still in flux.
        It would be better to delay deprecation until we converge
        to proper solution.

This reverts commit 3566d918d2.
2023-04-21 15:03:20 +00:00

16 lines
359 B
Kotlin
Vendored

@JsFun("() => {}")
external fun topLevelExternalFun(): Unit
external class ExternalClass {
<!WRONG_JS_FUN_TARGET!>@JsFun("() => {}")<!>
fun memberFun(): Unit
}
<!WRONG_JS_FUN_TARGET!>@JsFun("() => {}")<!>
fun topLevelNonExternalFun(): Unit {}
class NonExternalClass {
<!WRONG_JS_FUN_TARGET!>@JsFun("() => {}")<!>
fun memberFun(): Unit {}
}