TypeScript/tests/cases/fourslash/findAllRefsJsDocTypeDef_js.ts
Andy 2ccfe502f7 Fix scope of @typedef references (#16718)
* Fix scope of @typedef references

* Remove unused variables
2017-06-28 13:30:23 -07:00

21 lines
447 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 |}T|] */
////
/////**
//// * @return {[|T|]}
//// */
////function f(obj) { return 0; }
////
/////**
//// * @return {[|T|]}
//// */
////function f2(obj) { return 0; }
verify.singleReferenceGroup("type T = number");