Files
tsgo/testdata/tests/cases/compiler/jsdocCallbackParamQualifiedName.ts
f9db4c30c5 Fix panic when @callback/@overload @param has a qualified name (#3922)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-05-18 11:22:04 +00:00

30 lines
356 B
TypeScript

// @allowJs: true
// @checkJs: true
// @noEmit: true
// @filename: bug.js
/**
* @callback cb
* @param x.y
*/
/**
* @callback cb2
* @param {object} x
* @param {string} x.y
*/
/**
* @overload
* @param {object} x
* @param {string} x.y
* @returns {string}
*/
/**
* @param {object} x
* @returns {string}
*/
function foo(x) {
return x.y;
}