11 lines
No EOL
726 B
Text
11 lines
No EOL
726 B
Text
tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration2.d.ts(1,1): error TS1046: A 'declare' modifier is required for a top level declaration in a .d.ts file.
|
|
tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration2.d.ts(1,14): error TS1184: An implementation cannot be declared in ambient contexts.
|
|
|
|
|
|
==== tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration2.d.ts (2 errors) ====
|
|
function F() {
|
|
~~~~~~~~
|
|
!!! error TS1046: A 'declare' modifier is required for a top level declaration in a .d.ts file.
|
|
~
|
|
!!! error TS1184: An implementation cannot be declared in ambient contexts.
|
|
} |