TypeScript/tests/cases/fourslash/referencesForInheritedProperties3.ts
Andy Hanson 8515f7e2b5 Change find-all-references tests to test for groups
* Also always test for isWriteAccess and isDefinition
2017-01-31 06:59:16 -08:00

15 lines
561 B
TypeScript

/// <reference path='fourslash.ts'/>
//// interface interface1 extends interface1 {
//// [|{| "isWriteAccess": true, "isDefinition": true |}doStuff|](): void;
//// [|{| "isWriteAccess": true, "isDefinition": true |}propName|]: string;
//// }
////
//// var v: interface1;
//// v.[|propName|];
//// v.[|doStuff|]();
const ranges = test.rangesByText();
verify.singleReferenceGroup("(method) interface1.doStuff(): void", ranges.get("doStuff"));
verify.singleReferenceGroup("(property) interface1.propName: string", ranges.get("propName"));