Check for omitted expressions when checking const and let declaration names

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

No files matched your search

+3 -1
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);
}
}
}
}