01f2b0e26b
It allows only for top-level declarations, plus JsName is needed to avoid error about method redeclaration
14 lines
189 B
Kotlin
Vendored
14 lines
189 B
Kotlin
Vendored
// PROBLEM: none
|
|
// JS
|
|
|
|
val name: String = ""
|
|
|
|
fun hello() {
|
|
println("Hello $name!")
|
|
}
|
|
|
|
@JsExport
|
|
@JsName("other")
|
|
fun <caret>hello(greeting: String) {
|
|
println("$greeting $name!")
|
|
} |