mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
344 B
TypeScript
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;
|
|
}
|
|
}
|