mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
f9db4c30c5
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
30 lines
356 B
TypeScript
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;
|
|
}
|