Check for omitted expressions when checking const and let declaration names

This commit is contained in:
Mohamed Hegazy
2015-04-06 15:32:22 -07:00
parent c53b0a5016
commit d71632aa38
4 changed files with 94 additions and 1 deletions

View File

@@ -12596,7 +12596,9 @@ module ts {
else {
let elements = (<BindingPattern>name).elements;
for (let element of elements) {
checkGrammarNameInLetOrConstDeclarations(element.name);
if (element.kind !== SyntaxKind.OmittedExpression) {
checkGrammarNameInLetOrConstDeclarations(element.name);
}
}
}
}