File tree 2 files changed +26
-1
lines changed 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,8 @@ namespace ts.SymbolDisplay {
379
379
}
380
380
}
381
381
}
382
- if ( symbolFlags & SymbolFlags . Alias ) {
382
+ // don't use symbolFlags since getAliasedSymbol requires the flag on the symbol itself
383
+ if ( symbol . flags & SymbolFlags . Alias ) {
383
384
prefixNextMeaning ( ) ;
384
385
if ( ! hasAddedSymbolInfo ) {
385
386
const resolvedSymbol = typeChecker . getAliasedSymbol ( symbol ) ;
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+
3
+ // GH #35347
4
+
5
+ // @Filename : a.js
6
+ // @allowJs : true
7
+ //// /**
8
+ //// * @enum {string}
9
+ //// */
10
+ //// const testString = {
11
+ //// one: "1",
12
+ //// two: "2"
13
+ //// };
14
+ ////
15
+ //// export { test/**/String };
16
+
17
+ verify . quickInfoAt ( "" ,
18
+ `type testString = string
19
+ (alias) type testString = any
20
+ (alias) const testString: {
21
+ one: string;
22
+ two: string;
23
+ }
24
+ export testString` ) ;
You can’t perform that action at this time.
0 commit comments