mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Removed incorrect check of symbolKind determination of undefined symbol
This commit is contained in:
parent
3715af1a5a
commit
6f6be7e0e4
@ -2754,10 +2754,6 @@ module ts {
|
||||
if (symbolKind === ScriptElementKind.memberGetAccessorElement || symbolKind === ScriptElementKind.memberSetAccessorElement) {
|
||||
symbolKind = ScriptElementKind.memberVariableElement;
|
||||
}
|
||||
else if (symbol.name === "undefined") {
|
||||
// undefined is symbol and not property
|
||||
symbolKind = ScriptElementKind.variableElement;
|
||||
}
|
||||
|
||||
var type = typeResolver.getTypeOfSymbol(symbol);
|
||||
if (type) {
|
||||
|
||||
@ -3,6 +3,13 @@
|
||||
////function foo(a: string) {
|
||||
////}
|
||||
////foo(/*1*/undefined);
|
||||
////var x = {
|
||||
//// undefined: 10
|
||||
////};
|
||||
////x./*2*/undefined = 30;
|
||||
|
||||
goTo.marker('1');
|
||||
verify.quickInfoIs('(var) undefined');
|
||||
verify.quickInfoIs('(var) undefined');
|
||||
|
||||
goTo.marker('2');
|
||||
verify.quickInfoIs('(property) undefined: number');
|
||||
Loading…
x
Reference in New Issue
Block a user