Files
kotlin-fork/compiler/testData/diagnostics/wasmTests/jsInterop/jsFun.kt
T
Svyatoslav Kuzmich 31560217f8 [Wasm] Port @JsFun checker to K2 (KT-56849)
^KT-62724 Fixed
2023-11-20 14:39:24 +00:00

17 lines
376 B
Kotlin
Vendored

// FIR_IDENTICAL
@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 {}
}