Block scoped variables, classes and enums would issue a bogus use-before-def error in jsdoc because name resolution always adds Value, even when resolving a type. Fixes #25097
8 lines
130 B
TypeScript
8 lines
130 B
TypeScript
// @noEmit: true
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @Filename: bug25097.js
|
|
/** @type {C | null} */
|
|
const c = null
|
|
class C {
|
|
}
|