We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78bb276 commit 2eba10aCopy full SHA for 2eba10a
1 file changed
src/compiler/program.ts
@@ -1006,11 +1006,10 @@ namespace ts {
1006
return;
1007
}
1008
// pass through
1009
- let isConstInvalid = true;
1010
case SyntaxKind.VariableStatement:
1011
// Check modifiers
1012
if (nodes === (<ClassDeclaration | FunctionLikeDeclaration | VariableStatement>parent).modifiers) {
1013
- return checkModifiers(<NodeArray<Modifier>>nodes, !isConstInvalid);
+ return checkModifiers(<NodeArray<Modifier>>nodes, parent.kind === SyntaxKind.VariableStatement);
1014
1015
break;
1016
case SyntaxKind.PropertyDeclaration:
0 commit comments