Skip to content

Commit 2398762

Browse files
committed
Revert 12
1 parent 3b2ec35 commit 2398762

4 files changed

Lines changed: 5 additions & 16 deletions

File tree

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts(1,1): error TS2304: Cannot find name 'a'.
2-
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts(1,6): error TS2304: Cannot find name 'b'.
3-
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts(1,9): error TS1005: ':' expected.
42
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts(1,13): error TS2304: Cannot find name 'c'.
5-
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts(1,15): error TS1005: ';' expected.
63
tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts(1,22): error TS2304: Cannot find name 'e'.
74

85

9-
==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts (6 errors) ====
6+
==== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts (3 errors) ====
107
a ? (b) => (c): d => e
118
~
129
!!! error TS2304: Cannot find name 'a'.
13-
~
14-
!!! error TS2304: Cannot find name 'b'.
15-
~~
16-
!!! error TS1005: ':' expected.
1710
~
1811
!!! error TS2304: Cannot find name 'c'.
19-
~
20-
!!! error TS1005: ';' expected.
2112
~
2213
!!! error TS2304: Cannot find name 'e'.
2314

tests/baselines/reference/parserArrowFunctionExpression12.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ a ? (b) => (c): d => e
33

44

55
//// [parserArrowFunctionExpression12.js]
6-
a ? (b) : ;
7-
(c);
8-
(function (d) { return e; });
6+
a ? function (b) { return (c); } : function (d) { return e; };
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
=== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts ===
22
a ? (b) => (c): d => e
3+
>b : Symbol(b, Decl(parserArrowFunctionExpression12.ts, 0, 5))
34
>d : Symbol(d, Decl(parserArrowFunctionExpression12.ts, 0, 15))
45

tests/baselines/reference/parserArrowFunctionExpression12.types

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
=== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression12.ts ===
22
a ? (b) => (c): d => e
3-
>a ? (b) : any
3+
>a ? (b) => (c): d => e : (b: any) => any
44
>a : any
5-
>(b) : any
5+
>(b) => (c) : (b: any) => any
66
>b : any
7-
> : any
87
>(c) : any
98
>c : any
109
>d => e : (d: any) => any

0 commit comments

Comments
 (0)