3566d918d2
kotlin.js.js("code") should be used instead
18 lines
390 B
Kotlin
Vendored
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 {}
|
|
}
|