mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Check for omitted expressions when checking const and let declaration names
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user