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