Files
scriptc/tests/corpus/static-field-updates/counter.ts
Chris Tate 5ae7350b0a Support declared JavaScript fields and static counters
- Compile JavaScript instance fields with native undefined initialization and ordered resets.
- Support prefix and postfix updates to numeric static fields through exact class bindings.
2026-09-27 23:13:02 -05:00

8 lines
138 B
TypeScript

export class Counter {
static value = 10;
static #private = 20;
static nextPrivate(): number {
return Counter.#private++;
}
}