1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
//// [autoAccessor4.ts]
class C1 {
accessor 0: any;
accessor 1 = 1;
static accessor 2: any;
static accessor 3 = 2;
}
//// [autoAccessor4.js]
class C1 {
#_a_accessor_storage;
get 0() { return this.#_a_accessor_storage; }
set 0(value) { this.#_a_accessor_storage = value; }
#_b_accessor_storage = 1;
get 1() { return this.#_b_accessor_storage; }
set 1(value) { this.#_b_accessor_storage = value; }
static #_c_accessor_storage;
static get 2() { return this.#_c_accessor_storage; }
static set 2(value) { this.#_c_accessor_storage = value; }
static #_d_accessor_storage = 2;
static get 3() { return this.#_d_accessor_storage; }
static set 3(value) { this.#_d_accessor_storage = value; }
}
|