KT-2752: add checkers for inconsistent usage of JsName
This commit is contained in:
+23
@@ -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) {}<!>
|
||||
Reference in New Issue
Block a user