Files
kotlin-fork/compiler/testData/diagnostics/testsWithJsStdLib/name/jsNameMissingOnAccessors.kt
T
2016-10-08 19:25:49 +03:00

23 lines
546 B
Kotlin
Vendored

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<!>
get() = 23
@JsName("set_y") 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) {}