Skip to content

checkJs error for indirect JSDoc param tag #19268

Closed
@DanielRosenwasser

Description

@DanielRosenwasser

TypeScript Version: 2.6.0-dev.20171015

// @ts-check

function Foo() {
    /**
     * @param {string} wat
     */
    this.bar = function(wat) {

    }
}

Expected: No error
Actual: JSDoc '@param' tag has name 'wat', but there is no parameter with that name.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions