TypeScript/tests/baselines/reference/parserConstructorDeclaration10.errors.txt
2014-07-12 17:30:19 -07:00

6 lines
270 B
Plaintext

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