TypeScript/tests/baselines/reference/parserConstructorDeclaration7.errors.txt

8 lines
336 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration7.ts (2 errors) ====
class C {
public private constructor() { }
~~~~~~~
!!! Accessibility modifier already seen.
~~~~~~~
!!! 'private' modifier cannot appear on a constructor declaration.
}