KT-2752: add checkers for inconsistent usage of JsName
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package foo
|
||||
|
||||
@JsName("bar") fun foo(x: Int) = x
|
||||
|
||||
private fun bar() = 42
|
||||
|
||||
fun box(): String {
|
||||
assertEquals(23, foo(23))
|
||||
assertEquals(42, bar())
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user