TypeScript/tests/baselines/reference/parserConstructorDeclaration5.errors.txt
2014-09-12 13:35:07 -07:00

9 lines
460 B
Plaintext

tests/cases/conformance/parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration5.ts(2,3): error TS1089: 'private' modifier cannot appear on a constructor declaration.
==== tests/cases/conformance/parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration5.ts (1 errors) ====
class C {
private constructor() { }
~~~~~~~
!!! error TS1089: 'private' modifier cannot appear on a constructor declaration.
}