Fixed bug where value-space identifiers got classified as interfaces when sharing the same name as an interface.

This commit is contained in:
Daniel Rosenwasser
2014-10-01 12:44:17 -07:00
parent f2880ce5b7
commit a6e991a3db
6 changed files with 117 additions and 97 deletions

View File

@@ -6,7 +6,6 @@
//// }
//// interface X extends M.I { }
debugger;
var c = classification;
verify.semanticClassificationsAre(
c.moduleName("M"), c.interfaceName("I"), c.interfaceName("X"), c.moduleName("M"), c.interfaceName("I"));

View File

@@ -0,0 +1,11 @@
/// <reference path="fourslash.ts"/>
//// interface Thing {
//// toExponential(): number;
//// }
////
//// var Thing = 0;
//// Thing.toExponential();
var c = classification;
verify.semanticClassificationsAre(c.interfaceName("Thing"));