Files
tsgo/testdata/baselines/reference/submodule/compiler/implementPublicPropertyAsPrivate.js

18 lines
388 B
TypeScript

//// [tests/cases/compiler/implementPublicPropertyAsPrivate.ts] ////
//// [implementPublicPropertyAsPrivate.ts]
interface I {
x: number;
}
class C implements I {
private x = 0; // should raise error at class decl
}
//// [implementPublicPropertyAsPrivate.js]
"use strict";
class C {
constructor() {
this.x = 0; // should raise error at class decl
}
}