Files
tsgo/testdata/baselines/reference/submodule/conformance/readonlyReadonly.js

16 lines
344 B
TypeScript

//// [tests/cases/conformance/classes/constructorDeclarations/constructorParameters/readonlyReadonly.ts] ////
//// [readonlyReadonly.ts]
class C {
readonly readonly x: number;
constructor(readonly readonly y: number) {}
}
//// [readonlyReadonly.js]
"use strict";
class C {
constructor(y) {
this.y = y;
}
}