2018-01-04 19:58:14 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @noLib: true
|
|
|
|
|
|
|
|
////interface A {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|readonly [|{| "isDefinition": true, "contextRangeIndex": 0 |}x|]: number | string;|]
|
2018-01-04 19:58:14 +01:00
|
|
|
////}
|
|
|
|
////interface B extends A {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|readonly [|{| "isDefinition": true, "contextRangeIndex": 2 |}x|]: number;|]
|
2018-01-04 19:58:14 +01:00
|
|
|
////}
|
2019-06-13 21:25:02 +02:00
|
|
|
////const a: A = { [|[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 4 |}x|]: 0|] };
|
|
|
|
////const b: B = { [|[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 6 |}x|]: 0|] };
|
2018-01-04 19:58:14 +01:00
|
|
|
|
2019-06-05 21:38:15 +02:00
|
|
|
const [r0Def, r0, r1Def, r1, r2Def, r2, r3Def, r3] = test.ranges();
|
|
|
|
verify.referenceGroups([r0, r1, r2, r3], [
|
2018-01-04 19:58:14 +01:00
|
|
|
{ definition: "(property) A.x: string | number", ranges: [r0, r2] },
|
|
|
|
{ definition: "(property) B.x: number", ranges: [r1, r3] },
|
|
|
|
]);
|