Files
kotlin-fork/compiler/testData/diagnostics/wasmTests/jsInterop/jsFun.kt
T
Svyatoslav Kuzmich 3566d918d2 [Wasm] Deprecate @JsFun with warning
kotlin.js.js("code") should be used instead
2023-03-03 19:39:11 +00:00

18 lines
390 B
Kotlin
Vendored

@file:Suppress("DEPRECATION")
@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 {}
}