File tree 2 files changed +29
-0
lines changed
2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -28472,6 +28472,7 @@ namespace ts {
28472
28472
if (hasSyntheticDefault) {
28473
28473
const memberTable = createSymbolTable();
28474
28474
const newSymbol = createSymbol(SymbolFlags.Alias, InternalSymbolName.Default);
28475
+ newSymbol.parent = originalSymbol;
28475
28476
newSymbol.nameType = getLiteralType("default");
28476
28477
newSymbol.target = resolveSymbol(symbol);
28477
28478
memberTable.set(InternalSymbolName.Default, newSymbol);
Original file line number Diff line number Diff line change
1
+ /// <reference path='fourslash.ts'/>
2
+
3
+ // @esModuleInterop : true
4
+ // @moduleResolution : node
5
+ // @target : es2015
6
+ // @module : esnext
7
+
8
+ // @Filename : /node_modules/@bar/foo/index.d.ts
9
+ //// export = Foo;
10
+ //// declare class Foo {}
11
+ //// declare namespace Foo {} // class/namespace declaration causes the issue
12
+
13
+ // @Filename : /node_modules/foo/index.d.ts
14
+ //// import * as Foo from "@bar/foo";
15
+ //// export = Foo;
16
+
17
+ // @Filename : /index.ts
18
+ //// import Foo from "foo";
19
+ //// /**/
20
+
21
+ goTo . file ( "/index.ts" ) ;
22
+ verify . completions ( {
23
+ marker : "" ,
24
+ includes : [ "Foo" ] ,
25
+ preferences : {
26
+ includeCompletionsForModuleExports : true
27
+ }
28
+ } ) ;
You can’t perform that action at this time.
0 commit comments