2016-09-26 18:33:08 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
2019-06-13 21:25:02 +02:00
|
|
|
////interface A1 { [|[|{| "contextRangeIndex": 0 |}a|]: number|] };
|
|
|
|
////interface A2 { [|[|{| "contextRangeIndex": 2 |}a|]?: number|] };
|
2016-11-03 17:39:58 +01:00
|
|
|
////let a1: A1;
|
|
|
|
////let a2: A2;
|
|
|
|
////let a12 = { ...a1, ...a2 };
|
2016-09-26 18:33:08 +02:00
|
|
|
////a12.[|a|];
|
|
|
|
|
2019-05-31 20:32:25 +02:00
|
|
|
const [r0Def, r0, r1Def, r1, r2] = test.ranges();
|
2016-09-26 18:33:08 +02:00
|
|
|
// A1 unions with A2, so rename A1.a and a12.a
|
2017-01-26 20:02:08 +01:00
|
|
|
verify.renameLocations(r0, [r0, r2]);
|
2016-09-26 18:33:08 +02:00
|
|
|
// A1 unions with A2, so rename A2.a and a12.a
|
2017-01-26 20:02:08 +01:00
|
|
|
verify.renameLocations(r1, [r1, r2]);
|
2016-09-26 18:33:08 +02:00
|
|
|
// a12.a unions A1.a and A2.a, so rename A1.a, A2.a and a12.a
|
2017-01-26 20:02:08 +01:00
|
|
|
verify.renameLocations(r2, [r0, r1, r2]);
|