mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 11:54:44 -06:00
Adding comment
This commit is contained in:
parent
6b6a59e9a0
commit
08cd75ded2
@ -3342,6 +3342,8 @@ function createBinder(): (file: SourceFile, options: CompilerOptions) => void {
|
||||
});
|
||||
}
|
||||
if (isPrototypeProperty && namespaceSymbol && namespaceSymbol.valueDeclaration && isAssignmentDeclaration(namespaceSymbol.valueDeclaration)) {
|
||||
//A prototype property assignment to something that looks class-like shouldn't actually count if the class-likeness came from an assignment declaration.
|
||||
//The checker requires an actual class/constructor function to attach the prototype property to.
|
||||
containerIsClass = false;
|
||||
}
|
||||
if (containerIsClass && namespaceSymbol && namespaceSymbol.valueDeclaration) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user