Merge pull request #2643 from Microsoft/checkForOmittedExpression

Check for omitted expressions when checking const and let declaration names
This commit is contained in:
Mohamed Hegazy
2015-04-06 16:42:51 -07:00
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);
}
}
}
}