8 lines
364 B
Plaintext
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.
|
|
} |