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
|
// PROBLEM: none
|
||||||
// JS
|
// JS
|
||||||
class Person(val name: String) {
|
|
||||||
fun hello() {
|
|
||||||
println("Hello $name!")
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsExport
|
val name: String = ""
|
||||||
fun <caret>hello(greeting: String) {
|
|
||||||
println("$greeting $name!")
|
fun hello() {
|
||||||
}
|
println("Hello $name!")
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsExport
|
||||||
|
@JsName("other")
|
||||||
|
fun <caret>hello(greeting: String) {
|
||||||
|
println("$greeting $name!")
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user