diff --git a/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.js b/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.js new file mode 100644 index 00000000000..dde6826c59c --- /dev/null +++ b/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.js @@ -0,0 +1,8 @@ +//// [parserParenthesizedVariableAndFunctionInTernary.ts] +let a: any; +const c = true ? (a) : function() {}; + + +//// [parserParenthesizedVariableAndFunctionInTernary.js] +var a; +var c = true ? (a) : function () { }; diff --git a/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.symbols b/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.symbols new file mode 100644 index 00000000000..3b64c950750 --- /dev/null +++ b/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.symbols @@ -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)) + diff --git a/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.types b/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.types new file mode 100644 index 00000000000..d3cd1f4fbb6 --- /dev/null +++ b/tests/baselines/reference/parserParenthesizedVariableAndFunctionInTernary.types @@ -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 +