add new test for getReferences on enums
This commit is contained in:
parent
922d6d6258
commit
7f53783ed4
1 changed files with 22 additions and 0 deletions
22
tests/cases/fourslash/referencesForEnums.ts
Normal file
22
tests/cases/fourslash/referencesForEnums.ts
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
/// <reference path='fourslash.ts'/>
|
||||||
|
|
||||||
|
////enum E {
|
||||||
|
//// /*value1*/value1 = 1,
|
||||||
|
//// "value2" = value1,
|
||||||
|
//// 111 = 11
|
||||||
|
////}
|
||||||
|
////
|
||||||
|
////E.value1;
|
||||||
|
////E["value2"];
|
||||||
|
////E./*value2*/value2;
|
||||||
|
////E[/*value3*/111];
|
||||||
|
|
||||||
|
|
||||||
|
goTo.marker("value1");
|
||||||
|
verify.referencesCountIs(3);
|
||||||
|
|
||||||
|
goTo.marker("value2");
|
||||||
|
verify.referencesCountIs(3);
|
||||||
|
|
||||||
|
goTo.marker("value3");
|
||||||
|
verify.referencesCountIs(2);
|
Loading…
Reference in a new issue