mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
17 lines
515 B
TypeScript
17 lines
515 B
TypeScript
|
// @target: es2015
|
||
|
// @importHelpers: true
|
||
|
// @isolatedModules: true
|
||
|
|
||
|
// @filename: main.ts
|
||
|
|
||
|
export class C {
|
||
|
#a = 1;
|
||
|
#b() { this.#c = 42; }
|
||
|
set #c(v: number) { this.#a += v; }
|
||
|
}
|
||
|
|
||
|
// @filename: tslib.d.ts
|
||
|
// these are pre-TS4.3 versions of emit helpers, which only supported private instance fields
|
||
|
export declare function __classPrivateFieldGet<T extends object, V>(receiver: T, state: any): V;
|
||
|
export declare function __classPrivateFieldSet<T extends object, V>(receiver: T, state: any, value: V): V;
|