2018-05-11 00:31:06 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
2019-06-13 21:25:02 +02:00
|
|
|
////[|export type [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}T|] = number;|]
|
|
|
|
////[|export type [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}U|] = string;|]
|
2018-05-11 00:31:06 +02:00
|
|
|
|
|
|
|
// @Filename: /b.ts
|
|
|
|
////const x: import("./a").[|T|] = 0;
|
|
|
|
////const x: import("./a").[|U|] = 0;
|
|
|
|
|
2019-06-04 22:58:27 +02:00
|
|
|
const [r0Def, r0, r1Def, r1, r2, r3] = test.ranges();
|
2018-05-11 00:31:06 +02:00
|
|
|
verify.singleReferenceGroup("type T = number", [r0, r2]);
|
|
|
|
verify.singleReferenceGroup("type U = string", [r1, r3]);
|