mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Merge pull request #799 from Microsoft/stopBlindlyColoring
Values sharing names with interfaces no longer classified as interfaces
This commit is contained in:
@@ -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"));
|
||||
|
||||
11
tests/cases/fourslash/semanticClassification2.ts
Normal file
11
tests/cases/fourslash/semanticClassification2.ts
Normal 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"));
|
||||
Reference in New Issue
Block a user