2018-05-04 22:32:40 +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|] = 0;|]
|
|
|
|
////[|export const [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}T|] = 0;|]
|
2018-05-04 22:32:40 +02:00
|
|
|
|
|
|
|
// @Filename: /b.ts
|
|
|
|
////const x: import("./a").[|T|] = 0;
|
|
|
|
////const x: typeof import("./a").[|T|] = 0;
|
|
|
|
|
2019-06-04 22:58:27 +02:00
|
|
|
const [r0Def, r0, r1Def, r1, r2, r3] = test.ranges();
|
2018-09-07 21:23:23 +02:00
|
|
|
verify.singleReferenceGroup("type T = 0", [r0, r2]);
|
|
|
|
verify.singleReferenceGroup("const T: 0", [r1, r3]);
|