mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-22 09:49:44 -05:00
Fixed issue where parser improperly parses a function declaration with no identifier.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserEqualsGreaterThanAfterFunction1.ts (2 errors) ====
|
||||
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserEqualsGreaterThanAfterFunction1.ts (1 errors) ====
|
||||
function =>
|
||||
~~
|
||||
!!! Identifier expected.
|
||||
|
||||
!!! Function implementation is missing or not immediately following the declaration.
|
||||
!!! Identifier expected.
|
||||
@@ -1,4 +1,4 @@
|
||||
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserEqualsGreaterThanAfterFunction2.ts (5 errors) ====
|
||||
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserEqualsGreaterThanAfterFunction2.ts (4 errors) ====
|
||||
function (a => b;
|
||||
~
|
||||
!!! Identifier expected.
|
||||
@@ -7,6 +7,4 @@
|
||||
~
|
||||
!!! ',' expected.
|
||||
|
||||
!!! ')' expected.
|
||||
|
||||
!!! Function implementation is missing or not immediately following the declaration.
|
||||
!!! ')' expected.
|
||||
Reference in New Issue
Block a user