Files
kotlin-fork/idea/testData/inspectionsLocal/unusedSymbol/jsExport.kt
T
Mikhail Zarechenskiy 01f2b0e26b Fix test data about JsExport
It allows only for top-level declarations, plus JsName is needed to
 avoid error about method redeclaration
2020-07-03 21:23:29 +03:00

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!")
}