TypeScript/tests/cases/fourslash/findAllRefsInheritedProperties2.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
568 B
TypeScript

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