Skip to content

// @ts-expect-error has no effect #934

Open
@norbusonam

Description

@norbusonam

After setting up the native preview, // @ts-expect-error seems to have no effect

Image
Image

Activity

jakebailey

jakebailey commented on Jun 4, 2025

@jakebailey
Member

Can you provide a repro?

AndrewSouthpaw

AndrewSouthpaw commented on Jun 20, 2025

@AndrewSouthpaw

For me, all it takes is this in any file:

// @ts-expect-error
const a: string = 1
Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @AndrewSouthpaw@jakebailey@norbusonam

        Issue actions

          `// @ts-expect-error` has no effect · Issue #934 · microsoft/typescript-go