mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Add new baselines
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
//// [parserParenthesizedVariableAndFunctionInTernary.ts]
|
||||
let a: any;
|
||||
const c = true ? (a) : function() {};
|
||||
|
||||
|
||||
//// [parserParenthesizedVariableAndFunctionInTernary.js]
|
||||
var a;
|
||||
var c = true ? (a) : function () { };
|
||||
@@ -0,0 +1,8 @@
|
||||
=== tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndFunctionInTernary.ts ===
|
||||
let a: any;
|
||||
>a : Symbol(a, Decl(parserParenthesizedVariableAndFunctionInTernary.ts, 0, 3))
|
||||
|
||||
const c = true ? (a) : function() {};
|
||||
>c : Symbol(c, Decl(parserParenthesizedVariableAndFunctionInTernary.ts, 1, 5))
|
||||
>a : Symbol(a, Decl(parserParenthesizedVariableAndFunctionInTernary.ts, 0, 3))
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
=== tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndFunctionInTernary.ts ===
|
||||
let a: any;
|
||||
>a : any
|
||||
|
||||
const c = true ? (a) : function() {};
|
||||
>c : any
|
||||
>true ? (a) : function() {} : any
|
||||
>true : true
|
||||
>(a) : any
|
||||
>a : any
|
||||
>function() {} : () => void
|
||||
|
||||
Reference in New Issue
Block a user