TypeScript/tests/cases/fourslash/findAllRefs_importType_meaningAtLocation.ts

14 lines
533 B
TypeScript
Raw Normal View History

/// <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;|]
// @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();
verify.singleReferenceGroup("type T = 0", [r0, r2]);
verify.singleReferenceGroup("const T: 0", [r1, r3]);