We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ee8213 commit 7d773f1Copy full SHA for 7d773f1
src/compiler/checker.ts
@@ -1,4 +1,4 @@
1
-/// <reference path="moduleNameResolver.ts"/>
+/// <reference path="moduleNameResolver.ts"/>
2
/// <reference path="binder.ts"/>
3
4
/* @internal */
@@ -18337,7 +18337,11 @@ namespace ts {
18337
const staticType = <ObjectType>getTypeOfSymbol(symbol);
18338
checkTypeParameterListsIdentical(node, symbol);
18339
checkClassForDuplicateDeclarations(node);
18340
+
18341
+ // Only check for reserved static identifiers on non-ambient context.
18342
+ if (!isInAmbientContext(node)) {
18343
checkClassForStaticPropertyNameConflicts(node);
18344
+ }
18345
18346
const baseTypeNode = getClassExtendsHeritageClauseElement(node);
18347
if (baseTypeNode) {
0 commit comments