mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
496 B
TypeScript
26 lines
496 B
TypeScript
//// [tests/cases/compiler/duplicatePropertyAndAccessor.ts] ////
|
|
|
|
//// [duplicatePropertyAndAccessor.ts]
|
|
// https://github.com/microsoft/typescript-go/issues/4130
|
|
|
|
class C {
|
|
y: number = 2;
|
|
accessor y: number = 3;
|
|
}
|
|
|
|
|
|
//// [duplicatePropertyAndAccessor.js]
|
|
"use strict";
|
|
// https://github.com/microsoft/typescript-go/issues/4130
|
|
class C {
|
|
y = 2;
|
|
accessor y = 3;
|
|
}
|
|
|
|
|
|
//// [duplicatePropertyAndAccessor.d.ts]
|
|
declare class C {
|
|
y: number;
|
|
accessor y: number;
|
|
}
|