TypeScript/tests/cases/fourslash/findAllRefsJsDocTypeDef_js.ts
2019-06-13 12:41:21 -07:00

21 lines
480 B
TypeScript

/// <reference path='fourslash.ts'/>
// Tests that the scope of @typedef is not just the node immediately below it.
// @allowJs: true
// @Filename: /a.js
/////** [|@typedef {number} [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}T|]|] */
////
/////**
//// * @return {[|T|]}
//// */
////function f(obj) { return 0; }
////
/////**
//// * @return {[|T|]}
//// */
////function f2(obj) { return 0; }
verify.singleReferenceGroup("type T = number", "T");