Files
tsgo/testdata/baselines/reference/compiler/jsdocCallbackParamQualifiedName.errors.txt
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

31 lines
599 B
Plaintext

bug.js(23,14): error TS2339: Property 'y' does not exist on type 'object'.
==== bug.js (1 errors) ====
/**
* @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;
~
!!! error TS2339: Property 'y' does not exist on type 'object'.
}