mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
368 B
TypeScript
17 lines
368 B
TypeScript
//// [tests/cases/compiler/fieldAndGetterWithSameName.ts] ////
|
|
|
|
//// [fieldAndGetterWithSameName.ts]
|
|
export class C {
|
|
x: number;
|
|
get x(): number { return 1; }
|
|
}
|
|
|
|
//// [fieldAndGetterWithSameName.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.C = void 0;
|
|
class C {
|
|
get x() { return 1; }
|
|
}
|
|
exports.C = C;
|