Skip to content

No error message for JSDoc type parsing #1880

@DanielRosenwasser

Description

@DanielRosenwasser

In a JS file:

// @ts-check

/** @type {@import("something").Type} */
let x;

Currently, no error is reported for this file.

Expected:

wat.mjs:3:12 - error TS1110: Type expected.

3 /** @type {@import("something").Type} */
             ~

Metadata

Metadata

Assignees

Labels

Domain: JSRelated to JS parsing, checkingbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions