2017-05-26 18:52:46 +02:00
|
|
|
///<reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @allowJs: true
|
|
|
|
// @Filename: a.js
|
|
|
|
|
2019-06-13 21:25:02 +02:00
|
|
|
/////** [|@typedef {number} [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}T|]|] */
|
2017-05-26 18:52:46 +02:00
|
|
|
|
2019-06-13 21:25:02 +02:00
|
|
|
////[|const [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}T|] = 1;|]
|
2017-05-26 18:52:46 +02:00
|
|
|
|
|
|
|
/////** @type {[|T|]} */
|
|
|
|
////const n = [|T|];
|
|
|
|
|
2019-06-04 21:24:34 +02:00
|
|
|
const [t0Def, t0, v0Def, v0, t1, v1] = test.ranges();
|
2017-05-26 18:52:46 +02:00
|
|
|
|
2018-09-07 21:23:23 +02:00
|
|
|
verify.singleReferenceGroup("type T = number", [t0, t1]);
|
|
|
|
verify.singleReferenceGroup("const T: 1", [v0, v1]);
|