6 lines
270 B
Text
6 lines
270 B
Text
|
==== tests/cases/conformance/parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration10.ts (1 errors) ====
|
||
|
class C {
|
||
|
constructor(): number { }
|
||
|
~~~~~~
|
||
|
!!! Type annotation cannot appear on a constructor declaration.
|
||
|
}
|