Unused symbol: do not report for @JsName annotated declarations

#KT-17368 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-01-29 16:15:19 +09:00
committed by Yan Zhulanow
parent 7abd0831a1
commit 905d0c1016
3 changed files with 18 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
// PROBLEM: none
// JS
class Person(val name: String) {
fun hello() {
println("Hello $name!")
}
@JsName("helloWithGreeting")
fun <caret>hello(greeting: String) {
println("$greeting $name!")
}
}