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:
Mikhail Zarechenskiy
2020-07-03 15:09:35 +03:00
parent 9a08085146
commit 01f2b0e26b
+10 -8
View File
@@ -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!")
}