mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-14 16:56:06 -05:00
Adding fix for crash and changing test names
This commit is contained in:
@@ -3341,6 +3341,9 @@ function createBinder(): (file: SourceFile, options: CompilerOptions) => void {
|
||||
}
|
||||
});
|
||||
}
|
||||
if (isPrototypeProperty && namespaceSymbol && namespaceSymbol.valueDeclaration) {
|
||||
if (isAssignmentDeclaration(namespaceSymbol.valueDeclaration)) containerIsClass = false;
|
||||
}
|
||||
if (containerIsClass && namespaceSymbol && namespaceSymbol.valueDeclaration) {
|
||||
addDeclarationToSymbol(namespaceSymbol, namespaceSymbol.valueDeclaration, SymbolFlags.Class);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @filename: a.js
|
||||
// @noEmit: true
|
||||
// @checkJs: true
|
||||
|
||||
// @filename: a.js
|
||||
Thing.abc = 123
|
||||
Thing.prototype.def = 456
|
||||
new Thing();
|
||||
new Thing();
|
||||
@@ -1,11 +1,11 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
// @Filename: a.js
|
||||
// @allowJs: true
|
||||
|
||||
// @Filename: a.js
|
||||
//// Thing.abc = 123
|
||||
//// Thing.prototype.def = 456
|
||||
//// new Thing/**/();
|
||||
|
||||
verify.goToDefinition("", "");
|
||||
verify.noErrors();
|
||||
verify.noErrors();
|
||||
Reference in New Issue
Block a user