TypeScript/tests/cases/conformance/jsdoc/typeTagCircularReferenceOnConstructorFunction.ts
Nathan Shively-Sanders a4a5b3806e Report circular JSDoc type references (#27404)
JSDoc types references can often be to values, which can often be
circular in ways that types tied to declarations cannot. I decided to
create a separate property on SymbolLinks rather than reusing
declaredType, although I'm not sure that's strictly required.
2018-10-08 08:56:29 -07:00

10 lines
153 B
TypeScript

// @allowJs: true
// @noEmit: true
// @checkJs: true
// @Filename: bug27346.js
/**
* @type {MyClass}
*/
function MyClass() { }
MyClass.prototype = {};