TypeScript/tests/cases/conformance/jsdoc/callbackTagNamespace.ts
Nathan Shively-Sanders e250942d6a
Disallow nested object param syntax in callback tag (#24392)
* Callback tag:Disallow nested-object-param syntax

Previously this caused a crash in parsing. If/when we want to support
this syntax, we will need to fix this crash.

* Update baselines
2018-05-24 15:11:33 -07:00

16 lines
315 B
TypeScript

// @noEmit: true
// @allowJs: true
// @checkJs: true
// @Filename: namespaced.js
/**
* @callback NS.Nested.Inner
* @param {Object} space - spaaaaaaaaace
* @param {Object} peace - peaaaaaaaaace
* @return {string | number}
*/
var x = 1;
/** @type {NS.Nested.Inner} */
function f(space, peace) {
return '1'
}