2017-06-28 22:30:23 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
// Tests that the scope of @typedef is not just the node immediately below it.
|
|
|
|
|
|
|
|
// @allowJs: true
|
|
|
|
|
|
|
|
// @Filename: /a.js
|
2019-06-13 21:25:02 +02:00
|
|
|
/////** [|@typedef {number} [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}T|]|] */
|
2017-06-28 22:30:23 +02:00
|
|
|
////
|
|
|
|
/////**
|
|
|
|
//// * @return {[|T|]}
|
|
|
|
//// */
|
|
|
|
////function f(obj) { return 0; }
|
|
|
|
////
|
|
|
|
/////**
|
|
|
|
//// * @return {[|T|]}
|
|
|
|
//// */
|
|
|
|
////function f2(obj) { return 0; }
|
|
|
|
|
2019-06-06 00:01:34 +02:00
|
|
|
verify.singleReferenceGroup("type T = number", "T");
|