From f383c3c42dbb47b87d92bfae88c5a9b7ffd7eb1b Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Mon, 1 Apr 2019 14:11:30 -0700 Subject: [PATCH] Add test for parenthesized variable and function keyword within ternary --- .../parserParenthesizedVariableAndFunctionInTernary.ts | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndFunctionInTernary.ts diff --git a/tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndFunctionInTernary.ts b/tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndFunctionInTernary.ts new file mode 100644 index 00000000000..c2bca11d934 --- /dev/null +++ b/tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndFunctionInTernary.ts @@ -0,0 +1,2 @@ +let a: any; +const c = true ? (a) : function() {};