mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
Adding fix for crash and changing test names
This commit is contained in:
parent
376c3cdff8
commit
e9a5b2aaeb
@ -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();
|
||||
Loading…
x
Reference in New Issue
Block a user