4be2f53b47
JsFun target should be top-level external function
16 lines
359 B
Kotlin
Vendored
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 {}
|
|
}
|