Skip to content

JSDoc function type within generic not parsed correctly #19982

@weswigham

Description

@weswigham

TypeScript Version: 2.7.0-dev.201xxxxx

Code

    /** @type {!Set<function()>} */
    this._listeners = new Set();

Expected behavior:
No error, strongly typed this._listeners

Actual behavior:

front_end/bindings/BlackboxManager.js(22,21): error TS1005: '>' expected.

(A parse error on function claiming a closing > is expected)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationDomain: JavaScriptThe issue relates to JavaScript specifically

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions