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 assign type mismatch when assigning multiple times on the same line #1242

Closed
Nexela opened this issue Jun 28, 2022 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@Nexela
Copy link
Contributor

Nexela commented Jun 28, 2022

image
image
image
image

This might be a seperate bug
With ---@Class double: number
image

Latest Vscode, Latest Master

@sumneko
Copy link
Collaborator

sumneko commented Jun 28, 2022

This might be a seperate bug
With ---@Class double: number

You cannot convert parent type to child type.
You may use ---@alias double number

@sumneko
Copy link
Collaborator

sumneko commented Jun 28, 2022

image
I cannot reproduce the issue of this title, please provide a more simple demo

EDIT: I can reproduce it with ---@alias double number

@sumneko sumneko added the bug Something isn't working label Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants