13 lines
715 B
Text
13 lines
715 B
Text
|
tests/cases/conformance/classes/constructorDeclarations/constructorParameters/readonlyReadonly.ts(2,14): error TS1030: 'readonly' modifier already seen.
|
||
|
tests/cases/conformance/classes/constructorDeclarations/constructorParameters/readonlyReadonly.ts(3,26): error TS1030: 'readonly' modifier already seen.
|
||
|
|
||
|
|
||
|
==== tests/cases/conformance/classes/constructorDeclarations/constructorParameters/readonlyReadonly.ts (2 errors) ====
|
||
|
class C {
|
||
|
readonly readonly x: number;
|
||
|
~~~~~~~~
|
||
|
!!! error TS1030: 'readonly' modifier already seen.
|
||
|
constructor(readonly readonly y: number) {}
|
||
|
~~~~~~~~
|
||
|
!!! error TS1030: 'readonly' modifier already seen.
|
||
|
}
|