Fix test data about JsExport
It allows only for top-level declarations, plus JsName is needed to avoid error about method redeclaration
This commit is contained in:
+10
-8
@@ -1,12 +1,14 @@
|
||||
// PROBLEM: none
|
||||
// JS
|
||||
class Person(val name: String) {
|
||||
fun hello() {
|
||||
println("Hello $name!")
|
||||
}
|
||||
|
||||
@JsExport
|
||||
fun <caret>hello(greeting: String) {
|
||||
println("$greeting $name!")
|
||||
}
|
||||
val name: String = ""
|
||||
|
||||
fun hello() {
|
||||
println("Hello $name!")
|
||||
}
|
||||
|
||||
@JsExport
|
||||
@JsName("other")
|
||||
fun <caret>hello(greeting: String) {
|
||||
println("$greeting $name!")
|
||||
}
|
||||
Reference in New Issue
Block a user