KT-2752: add checkers for inconsistent usage of JsName

This commit is contained in:
Alexey Andreev
2016-06-01 18:28:06 +03:00
parent 638952e96e
commit 6e1a0901ac
27 changed files with 364 additions and 94 deletions
@@ -0,0 +1,23 @@
package foo
class A {
<!JS_NAME_IS_NOT_ON_ALL_ACCESSORS!>var x: Int
@JsName("get_x") get() = 23
set(value) {}<!>
<!JS_NAME_IS_NOT_ON_ALL_ACCESSORS!>var y: Int
@JsName("get_y") get() = 23
set(value) {}<!>
var z: Int
@JsName("get_z") get() = 23
@JsName("set_z") set(value) {}
}
<!JS_NAME_IS_NOT_ON_ALL_ACCESSORS!>var xx: Int
@JsName("get_xx") get() = 23
set(value) {}<!>
<!JS_NAME_IS_NOT_ON_ALL_ACCESSORS!>var A.ext: Int
@JsName("get_ext") get() = 23
set(value) {}<!>