14 lines
533 B
TypeScript
14 lines
533 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @Filename: /a.ts
|
|
////[|export type [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}T|] = 0;|]
|
|
////[|export const [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}T|] = 0;|]
|
|
|
|
// @Filename: /b.ts
|
|
////const x: import("./a").[|T|] = 0;
|
|
////const x: typeof import("./a").[|T|] = 0;
|
|
|
|
const [r0Def, r0, r1Def, r1, r2, r3] = test.ranges();
|
|
verify.singleReferenceGroup("type T = 0", [r0, r2]);
|
|
verify.singleReferenceGroup("const T: 0", [r1, r3]);
|