Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect type narrowing in closures #4293

Open
MellKam opened this issue Apr 23, 2024 · 4 comments
Open

Incorrect type narrowing in closures #4293

MellKam opened this issue Apr 23, 2024 · 4 comments

Comments

@MellKam
Copy link

MellKam commented Apr 23, 2024

The type narrowing seems to be incorrect. In this example it should be the same type as the variable originally has, but for some reason it has null. (I have the latest version lsp extension and the latest version of vscode installed)
image

A bit different, but still incorrect reproduction in playground

image

@so1ve
Copy link
Member

so1ve commented Apr 24, 2024

I can't reproduce this issue on my machine, could you please provide a full repro repository?

@MellKam
Copy link
Author

MellKam commented Apr 24, 2024

@so1ve You can check the vue playground link. I will try to make a repo with reproduction today

@so1ve
Copy link
Member

so1ve commented Apr 24, 2024

I already checked that, and indeed the type is incorrect. But I cannot debug on the playground :(

@MellKam
Copy link
Author

MellKam commented Apr 25, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants