Address feedback on diagnostic message

This commit is contained in:
Yui T 2015-10-07 14:50:58 -07:00
parent 8be77b448f
commit 37db03ae6a
8 changed files with 564 additions and 549 deletions

View file

@ -618,6 +618,7 @@ namespace ts {
JSX_attribute_expected: { code: 17003, category: DiagnosticCategory.Error, key: "JSX attribute expected." }, JSX_attribute_expected: { code: 17003, category: DiagnosticCategory.Error, key: "JSX attribute expected." },
Cannot_use_JSX_unless_the_jsx_flag_is_provided: { code: 17004, category: DiagnosticCategory.Error, key: "Cannot use JSX unless the '--jsx' flag is provided." }, Cannot_use_JSX_unless_the_jsx_flag_is_provided: { code: 17004, category: DiagnosticCategory.Error, key: "Cannot use JSX unless the '--jsx' flag is provided." },
A_constructor_cannot_contain_a_super_call_when_its_class_extends_null: { code: 17005, category: DiagnosticCategory.Error, key: "A constructor cannot contain a 'super' call when its class extends 'null'" }, A_constructor_cannot_contain_a_super_call_when_its_class_extends_null: { code: 17005, category: DiagnosticCategory.Error, key: "A constructor cannot contain a 'super' call when its class extends 'null'" },
Left_hand_side_of_Asterisk_Asterisk_cannot_be_a_simple_unary_expression_Consider_parenthesize_the_expression: { code: 17006, category: DiagnosticCategory.Error, key: "Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression." }, An_unary_expression_with_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses: { code: 17006, category: DiagnosticCategory.Error, key: "An unary expression with '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses." },
Type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses: { code: 17006, category: DiagnosticCategory.Error, key: "Type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses." },
}; };
} }

View file

@ -2467,7 +2467,11 @@
"category": "Error", "category": "Error",
"code": 17005 "code": 17005
}, },
"Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression.": { "An unary expression with '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.": {
"category": "Error",
"code": 17006
},
"Type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.": {
"category": "Error", "category": "Error",
"code": 17006 "code": 17006
} }

View file

@ -3206,9 +3206,17 @@ namespace ts {
incrementExpression; incrementExpression;
} }
let unaryOperator = token;
let simpleUnaryExpression = parseSimpleUnaryExpression(); let simpleUnaryExpression = parseSimpleUnaryExpression();
if (token === SyntaxKind.AsteriskAsteriskToken) { if (token === SyntaxKind.AsteriskAsteriskToken) {
parseErrorAtCurrentToken(Diagnostics.Left_hand_side_of_Asterisk_Asterisk_cannot_be_a_simple_unary_expression_Consider_parenthesize_the_expression) let diagnostic: Diagnostic;
let start = skipTrivia(sourceText, simpleUnaryExpression.pos);
if (simpleUnaryExpression.kind === SyntaxKind.TypeAssertionExpression) {
parseErrorAtPosition(start, simpleUnaryExpression.end - start, Diagnostics.Type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses);
}
else {
parseErrorAtPosition(start, simpleUnaryExpression.end - start, Diagnostics.An_unary_expression_with_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses, tokenToString(unaryOperator));
}
} }
return simpleUnaryExpression; return simpleUnaryExpression;
} }
@ -3240,16 +3248,10 @@ namespace ts {
case SyntaxKind.VoidKeyword: case SyntaxKind.VoidKeyword:
return parseVoidExpression(); return parseVoidExpression();
case SyntaxKind.LessThanToken: case SyntaxKind.LessThanToken:
if (sourceFile.languageVariant !== LanguageVariant.JSX) { // This is modified UnaryExpression grammar in TypeScript
// This is modified UnaryExpression grammar in TypeScript // UnaryExpression (modified):
// UnaryExpression (modified): // < type > UnaryExpression
// < type > UnaryExpression return parseTypeAssertion();
return parseTypeAssertion();
}
if (lookAhead(nextTokenIsIdentifierOrKeyword)) {
return parseJsxElementOrSelfClosingElement(/*inExpressionContext*/ true);
}
// Fall through
default: default:
return parseIncrementExpression(); return parseIncrementExpression();
} }
@ -3276,8 +3278,13 @@ namespace ts {
case SyntaxKind.DeleteKeyword: case SyntaxKind.DeleteKeyword:
case SyntaxKind.TypeOfKeyword: case SyntaxKind.TypeOfKeyword:
case SyntaxKind.VoidKeyword: case SyntaxKind.VoidKeyword:
return false
case SyntaxKind.LessThanToken: case SyntaxKind.LessThanToken:
return false; // TODO (yuisu): comment
if (sourceFile.languageVariant !== LanguageVariant.JSX) {
return false;
}
// Fall through
default: default:
return true; return true;
} }
@ -3302,20 +3309,23 @@ namespace ts {
node.operand = parseLeftHandSideExpressionOrHigher(); node.operand = parseLeftHandSideExpressionOrHigher();
return finishNode(node); return finishNode(node);
} }
else { else if (sourceFile.languageVariant === LanguageVariant.JSX && token === SyntaxKind.LessThanToken && lookAhead(nextTokenIsIdentifierOrKeyword)) {
let expression = parseLeftHandSideExpressionOrHigher(); // TODO (yuisu) : comment
return parseJsxElementOrSelfClosingElement(/*inExpressionContext*/ true);
Debug.assert(isLeftHandSideExpression(expression));
if ((token === SyntaxKind.PlusPlusToken || token === SyntaxKind.MinusMinusToken) && !scanner.hasPrecedingLineBreak()) {
let node = <PostfixUnaryExpression>createNode(SyntaxKind.PostfixUnaryExpression, expression.pos);
node.operand = expression;
node.operator = token;
nextToken();
return finishNode(node);
}
return expression;
} }
let expression = parseLeftHandSideExpressionOrHigher();
Debug.assert(isLeftHandSideExpression(expression));
if ((token === SyntaxKind.PlusPlusToken || token === SyntaxKind.MinusMinusToken) && !scanner.hasPrecedingLineBreak()) {
let node = <PostfixUnaryExpression>createNode(SyntaxKind.PostfixUnaryExpression, expression.pos);
node.operand = expression;
node.operator = token;
nextToken();
return finishNode(node);
}
return expression;
} }
function parseLeftHandSideExpressionOrHigher(): LeftHandSideExpression { function parseLeftHandSideExpressionOrHigher(): LeftHandSideExpression {

View file

@ -1,48 +1,48 @@
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(8,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(8,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(8,18): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(8,8): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(9,8): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(9,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(10,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(10,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(11,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(11,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(12,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(12,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(12,8): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(12,4): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(13,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(13,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(13,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(13,4): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(15,8): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(15,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(15,25): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(15,21): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(16,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(16,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(16,29): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(16,23): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(17,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(17,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(17,29): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(17,23): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(18,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(18,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(18,8): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(18,4): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(18,25): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(18,25): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(18,29): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(18,25): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(19,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(19,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(19,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(19,4): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(19,28): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(19,28): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(19,38): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(19,28): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(20,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(20,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(20,18): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(20,8): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(20,36): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(20,36): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(20,46): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(20,36): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(22,8): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(22,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(22,38): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(22,34): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(23,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(23,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(23,42): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(23,36): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(24,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(24,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(24,42): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(24,36): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(25,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(25,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(25,8): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(25,4): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(25,38): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(25,38): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(25,42): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(25,38): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(26,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(26,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(26,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(26,4): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(26,41): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(26,41): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(26,51): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(26,41): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(27,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(27,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(27,18): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(27,8): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(27,49): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(27,49): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(27,59): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts(27,49): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
==== tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts (45 errors) ==== ==== tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts (45 errors) ====
@ -56,110 +56,110 @@ tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTempl
`${1 + typeof t1 ** t2 ** t1}`; `${1 + typeof t1 ** t2 ** t1}`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-t1 ** t2 - t1}`; `${-t1 ** t2 - t1}`;
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-++t1 ** t2 - t1}`; `${-++t1 ** t2 - t1}`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-t1++ ** t2 - t1}`; `${-t1++ ** t2 - t1}`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${!t1 ** t2 ** --t1 }`; `${!t1 ** t2 ** --t1 }`;
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${typeof t1 ** t2 ** t1}`; `${typeof t1 ** t2 ** t1}`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-t1 ** t2 - t1}${-t1 ** t2 - t1}`; `${-t1 ** t2 - t1}${-t1 ** t2 - t1}`;
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}`; `${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}`; `${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }`; `${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }`;
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}`; `${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}`; `${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}`; `${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}`;
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}`; `${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}`; `${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }`; `${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }`;
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}`; `${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}`; `${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.

View file

@ -1,48 +1,48 @@
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(8,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(8,10): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(9,16): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(9,10): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(10,16): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(10,10): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(11,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(11,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(11,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(11,10): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(12,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(12,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(12,20): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(12,10): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(13,14): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(13,14): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(13,24): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(13,14): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(15,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(15,10): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(15,31): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(15,27): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(16,16): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(16,10): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(16,35): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(16,29): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(17,16): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(17,10): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(17,35): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(17,29): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(18,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(18,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(18,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(18,10): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(18,31): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(18,31): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(18,35): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(18,31): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(19,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(19,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(19,20): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(19,10): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(19,34): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(19,34): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(19,44): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(19,34): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(20,14): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(20,14): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(20,24): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(20,14): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(20,42): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(20,42): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(20,52): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(20,42): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(22,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(22,10): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(22,44): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(22,40): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(23,16): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(23,10): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(23,48): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(23,42): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(24,16): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(24,10): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(24,48): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(24,42): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(25,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(25,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(25,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(25,10): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(25,44): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(25,44): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(25,48): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(25,44): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(26,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(26,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(26,20): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(26,10): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(26,47): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(26,47): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(26,57): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(26,47): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(27,14): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(27,14): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(27,24): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(27,14): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(27,55): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(27,55): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(27,65): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts(27,55): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
==== tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts (45 errors) ==== ==== tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts (45 errors) ====
@ -54,113 +54,113 @@ tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTempl
// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without ()
// With templateHead // With templateHead
`hello ${-t1 ** t2 - t1}`; `hello ${-t1 ** t2 - t1}`;
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${-++t1 ** t2 - t1}`; `hello ${-++t1 ** t2 - t1}`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${-t1++ ** t2 - t1}`; `hello ${-t1++ ** t2 - t1}`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${!t1 ** t2 ** --t1 }`; `hello ${!t1 ** t2 ** --t1 }`;
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${typeof t1 ** t2 ** t1}`; `hello ${typeof t1 ** t2 ** t1}`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${1 + typeof t1 ** t2 ** t1}`; `hello ${1 + typeof t1 ** t2 ** t1}`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${-t1 ** t2 - t1}${-t1 ** t2 - t1}`; `hello ${-t1 ** t2 - t1}${-t1 ** t2 - t1}`;
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}`; `hello ${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}`; `hello ${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }`; `hello ${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }`;
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}`; `hello ${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}`; `hello ${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}`; `hello ${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}`;
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}`; `hello ${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}`; `hello ${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }`; `hello ${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }`;
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}`; `hello ${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`hello ${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}`; `hello ${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.

View file

@ -1,48 +1,48 @@
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(8,8): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(8,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(9,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(9,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(10,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(10,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(11,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(11,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(11,8): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(11,4): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(12,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(12,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(12,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(12,4): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(13,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(13,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(13,18): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(13,8): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(15,8): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(15,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(15,25): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(15,21): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(16,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(16,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(16,29): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(16,23): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(17,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(17,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(17,29): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(17,23): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(18,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(18,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(18,8): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(18,4): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(18,25): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(18,25): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(18,29): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(18,25): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(19,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(19,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(19,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(19,4): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(19,28): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(19,28): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(19,38): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(19,28): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(20,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(20,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(20,18): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(20,8): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(20,36): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(20,36): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(20,46): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(20,36): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(22,8): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(22,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(22,38): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(22,34): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(23,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(23,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(23,42): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(23,36): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(24,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(24,4): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(24,42): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(24,36): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(25,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(25,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(25,8): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(25,4): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(25,38): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(25,38): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(25,42): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(25,38): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(26,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(26,4): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(26,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(26,4): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(26,41): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(26,41): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(26,51): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(26,41): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(27,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(27,8): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(27,18): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(27,8): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(27,49): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(27,49): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(27,59): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts(27,49): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
==== tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts (45 errors) ==== ==== tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts (45 errors) ====
@ -54,112 +54,112 @@ tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTempl
// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without ()
// With TemplateTail // With TemplateTail
`${-t1 ** t2 - t1} world`; `${-t1 ** t2 - t1} world`;
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-++t1 ** t2 - t1} world`; `${-++t1 ** t2 - t1} world`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-t1++ ** t2 - t1} world`; `${-t1++ ** t2 - t1} world`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${!t1 ** t2 ** --t1 } world`; `${!t1 ** t2 ** --t1 } world`;
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${typeof t1 ** t2 ** t1} world`; `${typeof t1 ** t2 ** t1} world`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${1 + typeof t1 ** t2 ** t1} world`; `${1 + typeof t1 ** t2 ** t1} world`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-t1 ** t2 - t1}${-t1 ** t2 - t1} world`; `${-t1 ** t2 - t1}${-t1 ** t2 - t1} world`;
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-++t1 ** t2 - t1}${-++t1 ** t2 - t1} world`; `${-++t1 ** t2 - t1}${-++t1 ** t2 - t1} world`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-t1++ ** t2 - t1}${-t1++ ** t2 - t1} world`; `${-t1++ ** t2 - t1}${-t1++ ** t2 - t1} world`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 } world`; `${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 } world`;
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1} world`; `${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1} world`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1} world`; `${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1} world`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1} !!`; `${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1} !!`;
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1} !!`; `${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1} !!`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1} !!`; `${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1} !!`;
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 } !!`; `${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 } !!`;
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~ ~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1} !!`; `${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1} !!`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
`${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1} !!`; `${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1} !!`;
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~~~~~~~~ ~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.

View file

@ -1,135 +1,135 @@
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(3,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(3,1): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(4,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(4,1): error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(5,9): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(5,6): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(6,9): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(6,6): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(7,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(7,1): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(7,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(7,7): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(8,11): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(8,1): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(12,9): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(12,1): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(13,9): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(13,1): error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(14,9): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(14,1): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(15,9): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(15,1): error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(16,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(16,6): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(17,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(17,6): error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(18,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(18,6): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(19,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(19,6): error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(21,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(21,1): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(22,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(22,1): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(23,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(23,1): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(24,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(24,1): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(25,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(25,1): error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(26,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(26,1): error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(27,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(27,1): error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(28,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(28,1): error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(29,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(29,1): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(30,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(30,1): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(31,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(31,1): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(32,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(32,1): error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(33,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(33,1): error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(34,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(34,1): error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(35,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(35,1): error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(36,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts(36,1): error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
==== tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts (31 errors) ==== ==== tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts (31 errors) ====
// Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without () // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without ()
-1 ** 2; -1 ** 2;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
+1 ** 2 +1 ** 2
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** -2 ** 3; 1 ** -2 ** 3;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** -2 ** -3; 1 ** -2 ** -3;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
-1 ** -2 ** -3; -1 ** -2 ** -3;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
-(1 ** 2) ** 3; -(1 ** 2) ** 3;
~~ ~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
var temp = 10; var temp = 10;
-++temp ** 3; -++temp ** 3;
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
+--temp ** 3; +--temp ** 3;
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
-temp++ ** 3; -temp++ ** 3;
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
+temp-- ** 3; +temp-- ** 3;
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** -++temp ** 3; 1 ** -++temp ** 3;
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** +--temp ** 3; 1 ** +--temp ** 3;
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** -temp++ ** 3; 1 ** -temp++ ** 3;
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** +temp-- ** 3; 1 ** +temp-- ** 3;
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
-3 ** temp++; -3 ** temp++;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
-3 ** temp--; -3 ** temp--;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
-3 ** ++temp; -3 ** ++temp;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
-3 ** --temp; -3 ** --temp;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
+3 ** temp++; +3 ** temp++;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
+3 ** temp--; +3 ** temp--;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
+3 ** ++temp; +3 ** ++temp;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
+3 ** --temp; +3 ** --temp;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
-3 ** temp++ ** 2; -3 ** temp++ ** 2;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
-3 ** temp-- ** 2; -3 ** temp-- ** 2;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
-3 ** ++temp ** 2; -3 ** ++temp ** 2;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
-3 ** --temp ** 2; -3 ** --temp ** 2;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
+3 ** temp++ ** 2; +3 ** temp++ ** 2;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
+3 ** temp-- ** 2; +3 ** temp-- ** 2;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
+3 ** ++temp ** 2; +3 ** ++temp ** 2;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
+3 ** --temp ** 2; +3 ** --temp ** 2;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '+' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.

View file

@ -1,84 +1,84 @@
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(5,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(5,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(5,15): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(5,1): error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(6,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(6,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(6,15): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(6,1): error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(7,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(7,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(7,15): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(7,1): error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(8,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(8,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(8,15): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(8,1): error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(11,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(11,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(11,20): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(11,6): error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(12,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(12,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(12,20): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(12,6): error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(13,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(13,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(13,20): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(13,6): error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(14,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(14,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(14,20): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(14,6): error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(16,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(16,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(16,15): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(16,1): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(17,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(17,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(17,15): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(17,1): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(18,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(18,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(18,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(18,1): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(19,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(19,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(19,15): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(19,1): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(20,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(20,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(20,15): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(20,1): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(22,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(22,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(22,20): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(22,6): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(23,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(23,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(23,20): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(23,6): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(24,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(24,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(24,15): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(24,6): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(25,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(25,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(25,20): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(25,6): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(26,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(26,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(26,20): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(26,6): error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(28,13): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(28,1): error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(29,13): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(29,1): error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(30,8): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(30,1): error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(31,13): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(31,1): error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(32,13): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(32,1): error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(34,18): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(34,6): error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(35,18): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(35,6): error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(36,13): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(36,6): error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(37,18): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(37,6): error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(38,18): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(38,6): error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(40,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(40,1): error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(41,9): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(41,1): error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(42,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(42,1): error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(43,9): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(43,1): error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(44,9): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(44,1): error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(46,15): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(46,6): error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(47,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(47,6): error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(48,9): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(48,6): error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(49,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(49,6): error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(50,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(50,6): error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(52,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(52,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(52,10): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(52,1): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(53,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(53,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(53,9): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(53,1): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(54,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(54,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(54,4): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(54,1): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(55,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(55,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(55,9): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(55,1): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(56,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(56,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(56,9): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(56,1): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(58,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(58,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(58,15): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(58,6): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(59,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(59,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(59,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(59,6): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(60,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(60,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(60,9): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(60,6): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(61,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(61,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(61,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(61,6): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(62,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(62,6): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(62,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(62,6): error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(64,14): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(64,1): error TS17006: Type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(65,16): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(65,1): error TS17006: Type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(66,16): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(66,1): error TS17006: Type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(67,16): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(67,1): error TS17006: Type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(68,16): error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts(68,1): error TS17006: Type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
==== tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts (81 errors) ==== ==== tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts (81 errors) ====
@ -89,226 +89,226 @@ tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxE
delete --temp ** 3; delete --temp ** 3;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
delete ++temp ** 3; delete ++temp ** 3;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
delete temp-- ** 3; delete temp-- ** 3;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
delete temp++ ** 3; delete temp++ ** 3;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** delete --temp ** 3; 1 ** delete --temp ** 3;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** delete ++temp ** 3; 1 ** delete ++temp ** 3;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** delete temp-- ** 3; 1 ** delete temp-- ** 3;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** delete temp++ ** 3; 1 ** delete temp++ ** 3;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
typeof --temp ** 3; typeof --temp ** 3;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
typeof temp-- ** 3; typeof temp-- ** 3;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
typeof 3 ** 4; typeof 3 ** 4;
~~~~~~~~ ~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
typeof temp++ ** 4; typeof temp++ ** 4;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
typeof temp-- ** 4; typeof temp-- ** 4;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** typeof --temp ** 3; 1 ** typeof --temp ** 3;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** typeof temp-- ** 3; 1 ** typeof temp-- ** 3;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** typeof 3 ** 4; 1 ** typeof 3 ** 4;
~~~~~~~~ ~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** typeof temp++ ** 4; 1 ** typeof temp++ ** 4;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** typeof temp-- ** 4; 1 ** typeof temp-- ** 4;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
void --temp ** 3; void --temp ** 3;
~~ ~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
void temp-- ** 3; void temp-- ** 3;
~~ ~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
void 3 ** 4; void 3 ** 4;
~~ ~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
void temp++ ** 4; void temp++ ** 4;
~~ ~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
void temp-- ** 4; void temp-- ** 4;
~~ ~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** void --temp ** 3; 1 ** void --temp ** 3;
~~ ~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** void temp-- ** 3; 1 ** void temp-- ** 3;
~~ ~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** void 3 ** 4; 1 ** void 3 ** 4;
~~ ~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** void temp++ ** 4; 1 ** void temp++ ** 4;
~~ ~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** void temp-- ** 4 ; 1 ** void temp-- ** 4 ;
~~ ~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with 'void' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~ --temp ** 3; ~ --temp ** 3;
~~ ~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~temp-- ** 3; ~temp-- ** 3;
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~3 ** 4; ~3 ** 4;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~temp++ ** 4; ~temp++ ** 4;
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
~temp-- ** 4; ~temp-- ** 4;
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** ~ --temp ** 3; 1 ** ~ --temp ** 3;
~~ ~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** ~temp-- ** 3; 1 ** ~temp-- ** 3;
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** ~3 ** 4; 1 ** ~3 ** 4;
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** ~temp++ ** 4; 1 ** ~temp++ ** 4;
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** ~temp-- ** 4; 1 ** ~temp-- ** 4;
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '~' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
! --temp ** 3; ! --temp ** 3;
~~~~~~~~ ~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
!temp-- ** 3; !temp-- ** 3;
~~~~~~~ ~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
!3 ** 4; !3 ** 4;
~~ ~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
!temp++ ** 4; !temp++ ** 4;
~~~~~~~ ~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
!temp-- ** 4; !temp-- ** 4;
~~~~~~~ ~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** ! --temp ** 3; 1 ** ! --temp ** 3;
~~~~~~~~ ~~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** !temp-- ** 3; 1 ** !temp-- ** 3;
~~~~~~~ ~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** !3 ** 4; 1 ** !3 ** 4;
~~ ~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** !temp++ ** 4; 1 ** !temp++ ** 4;
~~~~~~~ ~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
1 ** !temp-- ** 4; 1 ** !temp-- ** 4;
~~~~~~~ ~~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. !!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
~~ ~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: An unary expression with '!' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
<number>temp ** 3; <number>temp ** 3;
~~ ~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: Type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
<number>++temp ** 3; <number>++temp ** 3;
~~ ~~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: Type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
<number>--temp ** 3; <number>--temp ** 3;
~~ ~~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: Type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
<number>temp++ ** 3; <number>temp++ ** 3;
~~ ~~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: Type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.
<number>temp-- ** 3; <number>temp-- ** 3;
~~ ~~~~~~~~~~~~~~
!!! error TS17006: Left hand side of '**' cannot be a simple unary expression. Consider parenthesize the expression. !!! error TS17006: Type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.