File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2754,10 +2754,6 @@ module ts {
2754
2754
if ( symbolKind === ScriptElementKind . memberGetAccessorElement || symbolKind === ScriptElementKind . memberSetAccessorElement ) {
2755
2755
symbolKind = ScriptElementKind . memberVariableElement ;
2756
2756
}
2757
- else if ( symbol . name === "undefined" ) {
2758
- // undefined is symbol and not property
2759
- symbolKind = ScriptElementKind . variableElement ;
2760
- }
2761
2757
2762
2758
var type = typeResolver . getTypeOfSymbol ( symbol ) ;
2763
2759
if ( type ) {
Original file line number Diff line number Diff line change 3
3
////function foo(a: string) {
4
4
//// }
5
5
////foo(/*1*/undefined);
6
+ ////var x = {
7
+ //// undefined: 10
8
+ //// };
9
+ ////x./*2*/undefined = 30;
6
10
7
11
goTo . marker ( '1' ) ;
8
- verify . quickInfoIs ( '(var) undefined' ) ;
12
+ verify . quickInfoIs ( '(var) undefined' ) ;
13
+
14
+ goTo . marker ( '2' ) ;
15
+ verify . quickInfoIs ( '(property) undefined: number' ) ;
You can’t perform that action at this time.
0 commit comments