Skip to content

Commit 9699080

Browse files
committed
Add new baselines
1 parent d198c59 commit 9699080

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//// [parserParenthesizedVariableAndFunctionInTernary.ts]
2+
let a: any;
3+
const c = true ? (a) : function() {};
4+
5+
6+
//// [parserParenthesizedVariableAndFunctionInTernary.js]
7+
var a;
8+
var c = true ? (a) : function () { };
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
=== tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndFunctionInTernary.ts ===
2+
let a: any;
3+
>a : Symbol(a, Decl(parserParenthesizedVariableAndFunctionInTernary.ts, 0, 3))
4+
5+
const c = true ? (a) : function() {};
6+
>c : Symbol(c, Decl(parserParenthesizedVariableAndFunctionInTernary.ts, 1, 5))
7+
>a : Symbol(a, Decl(parserParenthesizedVariableAndFunctionInTernary.ts, 0, 3))
8+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
=== tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndFunctionInTernary.ts ===
2+
let a: any;
3+
>a : any
4+
5+
const c = true ? (a) : function() {};
6+
>c : any
7+
>true ? (a) : function() {} : any
8+
>true : true
9+
>(a) : any
10+
>a : any
11+
>function() {} : () => void
12+

0 commit comments

Comments
 (0)