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 coloring of casted variable #1348

Closed
sewbacca opened this issue Jul 18, 2022 · 0 comments
Closed

Incorrect coloring of casted variable #1348

sewbacca opened this issue Jul 18, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@sewbacca
Copy link
Contributor

Describe the bug
A any type cast to function won't color as a function.

To Reproduce
Steps to reproduce the behavior:

  1. local f
  2. ---@cast f fun() or ---@cast f function
  3. call f()
  4. Still colored blue.

Expected behavior
Coloring yellow.

Screenshots
grafik

Environment (please complete the following information):
VSCode, Windows, No WSL

Additional context
I am not sure if this is intended behaviour, but I would expect, if it has been casted, that it would visually show it.

@sumneko sumneko added the bug Something isn't working label Jul 19, 2022
@sumneko sumneko added this to the 3.5.0 milestone Jul 19, 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