mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
450 B
Plaintext
13 lines
450 B
Plaintext
//// [tests/cases/compiler/fieldAndGetterWithSameName.ts] ////
|
|
|
|
=== fieldAndGetterWithSameName.ts ===
|
|
export class C {
|
|
>C : Symbol(C, Decl(fieldAndGetterWithSameName.ts, 0, 0))
|
|
|
|
x: number;
|
|
>x : Symbol(C.x, Decl(fieldAndGetterWithSameName.ts, 0, 16), Decl(fieldAndGetterWithSameName.ts, 1, 14))
|
|
|
|
get x(): number { return 1; }
|
|
>x : Symbol(C.x, Decl(fieldAndGetterWithSameName.ts, 0, 16), Decl(fieldAndGetterWithSameName.ts, 1, 14))
|
|
}
|