-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5ecb51
commit 47afffd
Showing
9 changed files
with
19 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 4 additions & 7 deletions
11
tests/baselines/reference/parserArrowFunctionExpression10.errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts(1,1): error TS2304: Cannot find name 'a'. | ||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts(1,6): error TS2304: Cannot find name 'b'. | ||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts(1,17): error TS2304: Cannot find name 'd'. | ||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts(1,20): error TS1005: ';' expected. | ||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts(1,22): error TS2304: Cannot find name 'e'. | ||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts(1,27): error TS2304: Cannot find name 'f'. | ||
|
||
|
||
==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts (5 errors) ==== | ||
==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts (4 errors) ==== | ||
a ? (b) : c => (d) : e => f | ||
~ | ||
!!! error TS2304: Cannot find name 'a'. | ||
~ | ||
!!! error TS2304: Cannot find name 'b'. | ||
~ | ||
!!! error TS2304: Cannot find name 'd'. | ||
~ | ||
!!! error TS1005: ';' expected. | ||
~ | ||
!!! error TS2304: Cannot find name 'e'. | ||
~ | ||
!!! error TS2304: Cannot find name 'f'. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
tests/baselines/reference/parserArrowFunctionExpression10.symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
=== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts === | ||
a ? (b) : c => (d) : e => f | ||
>c : Symbol(c, Decl(parserArrowFunctionExpression10.ts, 0, 9)) | ||
>e : Symbol(e, Decl(parserArrowFunctionExpression10.ts, 0, 20)) | ||
>d : Symbol(d, Decl(parserArrowFunctionExpression10.ts, 0, 16)) | ||
>e : Symbol(e) | ||
|
8 changes: 3 additions & 5 deletions
8
tests/baselines/reference/parserArrowFunctionExpression10.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
=== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression10.ts === | ||
a ? (b) : c => (d) : e => f | ||
>a ? (b) : c => (d) : any | ||
>a ? (b) : c => (d) : e => f : any | ||
>a : any | ||
>(b) : any | ||
>b : any | ||
>c => (d) : (c: any) => any | ||
>c => (d) : e => f : (c: any) => (d: any) => e | ||
>c : any | ||
>(d) : any | ||
>(d) : e => f : (d: any) => e | ||
>d : any | ||
>e => f : (e: any) => any | ||
>e : any | ||
>f : any | ||
|
8 changes: 1 addition & 7 deletions
8
tests/baselines/reference/parserArrowFunctionExpression13.errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression13.ts(1,1): error TS2304: Cannot find name 'a'. | ||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression13.ts(1,11): error TS2304: Cannot find name 'a'. | ||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression13.ts(1,18): error TS1109: Expression expected. | ||
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression13.ts(1,19): error TS1005: ';' expected. | ||
|
||
|
||
==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression13.ts (4 errors) ==== | ||
==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression13.ts (2 errors) ==== | ||
a ? () => a() : (): any => null; | ||
~ | ||
!!! error TS2304: Cannot find name 'a'. | ||
~ | ||
!!! error TS2304: Cannot find name 'a'. | ||
~ | ||
!!! error TS1109: Expression expected. | ||
~ | ||
!!! error TS1005: ';' expected. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/baselines/reference/parserArrowFunctionExpression13.symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
=== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression13.ts === | ||
a ? () => a() : (): any => null; | ||
>any : Symbol(any, Decl(parserArrowFunctionExpression13.ts, 0, 19)) | ||
No type information for this code. | ||
No type information for this code. |
7 changes: 2 additions & 5 deletions
7
tests/baselines/reference/parserArrowFunctionExpression13.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
=== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression13.ts === | ||
a ? () => a() : (): any => null; | ||
>a ? () => a() : () : any | ||
>a ? () => a() : (): any => null : () => any | ||
>a : any | ||
>() => a() : () => any | ||
>a() : any | ||
>a : any | ||
>() : any | ||
> : any | ||
>any => null : (any: any) => any | ||
>any : any | ||
>(): any => null : () => any | ||
>null : null | ||
|