9 lines
No EOL
448 B
Text
9 lines
No EOL
448 B
Text
tests/cases/conformance/parser/ecmascript5/MemberFunctionDeclarations/parserMemberFunctionDeclaration5.ts(2,5): error TS1031: 'declare' modifier cannot appear on a class element.
|
|
|
|
|
|
==== tests/cases/conformance/parser/ecmascript5/MemberFunctionDeclarations/parserMemberFunctionDeclaration5.ts (1 errors) ====
|
|
class C {
|
|
declare Foo() { }
|
|
~~~~~~~
|
|
!!! error TS1031: 'declare' modifier cannot appear on a class element.
|
|
} |