TypeScript/tests/cases/fourslash/referencesForInheritedProperties9.ts
2019-06-13 12:41:21 -07:00

17 lines
513 B
TypeScript

/// <reference path='fourslash.ts'/>
//// class D extends C {
//// [|[|{| "isDefinition": true, "contextRangeIndex": 0 |}prop1|]: string;|]
//// }
////
//// class C extends D {
//// [|[|{| "isDefinition": true, "contextRangeIndex": 2 |}prop1|]: string;|]
//// }
////
//// var c: C;
//// c.[|prop1|];
const [r0Def, r0, r1Def, r1, r2] = test.ranges();
verify.singleReferenceGroup("(property) D.prop1: string", [r0]);
verify.singleReferenceGroup("(property) C.prop1: string", [r1, r2]);