mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
fix ambient context
This commit is contained in:
@@ -24289,7 +24289,9 @@ namespace ts {
|
||||
checkTypeNameIsReserved(node.name, Diagnostics.Class_name_cannot_be_0);
|
||||
checkCollisionWithRequireExportsInGeneratedCode(node, node.name);
|
||||
checkCollisionWithGlobalPromiseInGeneratedCode(node, node.name);
|
||||
checkClassNameCollisionWithObject(node.name);
|
||||
if (!(node.flags & NodeFlags.Ambient)) {
|
||||
checkClassNameCollisionWithObject(node.name);
|
||||
}
|
||||
}
|
||||
checkTypeParameters(getEffectiveTypeParameterDeclarations(node));
|
||||
checkTypeParameters(node.typeParameters);
|
||||
|
||||
Reference in New Issue
Block a user