File tree 2 files changed +18
-2
lines changed
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,6 @@ namespace ts.SymbolDisplay {
71
71
if ( rootSymbolFlags & ( SymbolFlags . PropertyOrAccessor | SymbolFlags . Variable ) ) {
72
72
return ScriptElementKind . memberVariableElement ;
73
73
}
74
- // May be a Function if this was from `typeof N` with `namespace N { function f();. }`.
75
- Debug . assert ( ! ! ( rootSymbolFlags & ( SymbolFlags . Method | SymbolFlags . Function ) ) ) ;
76
74
} ) ;
77
75
if ( ! unionPropertyKind ) {
78
76
// If this was union of all methods,
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+
3
+ // @allowJs : true
4
+ // @target : esnext
5
+
6
+ // @Filename : test.js
7
+ //// (typeof foo !== "undefined"
8
+ //// ? foo
9
+ //// : {}
10
+ //// )./**/;
11
+
12
+ // @Filename : someLib.d.ts
13
+ //// declare var foo: typeof globalThis;
14
+
15
+ goTo . marker ( ) ;
16
+ verify . completions ( {
17
+ marker : ""
18
+ } ) ;
You can’t perform that action at this time.
0 commit comments