Skip to content

JSDoc function type not parsed correctly when nested #19986

@weswigham

Description

@weswigham

TypeScript Version: 2.7.0-dev.201xxxxx

Code

  /**
   * @param {!Runtime.Extension} extension
   * @param {?function(function(new:Object)):boolean} predicate
   * @return {boolean}
   */
  _checkExtensionApplicability(extension, predicate) {
    return false;
  }

Expected behavior:
Strong types for extension and predicate.

Actual behavior:

front_end/Runtime.js(398,24): error TS1138: Parameter declaration expected.

(An error on the inner function, rather than a correctly constructed type)

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