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 @@ -28499,6 +28499,7 @@ namespace ts {
28499
28499
if (hasSyntheticDefault) {
28500
28500
const memberTable = createSymbolTable();
28501
28501
const newSymbol = createSymbol(SymbolFlags.Alias, InternalSymbolName.Default);
28502
+ newSymbol.parent = originalSymbol;
28502
28503
newSymbol.nameType = getLiteralType("default");
28503
28504
newSymbol.target = resolveSymbol(symbol);
28504
28505
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