TypeScript/tests/baselines/reference/parserConstructorDeclaration7.errors.txt
2014-09-11 16:11:08 -07:00

8 lines
364 B
Plaintext

==== tests/cases/conformance/parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration7.ts (2 errors) ====
class C {
public private constructor() { }
~~~~~~~
!!! error TS1028: Accessibility modifier already seen.
~~~~~~~
!!! error TS1089: 'private' modifier cannot appear on a constructor declaration.
}