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

The LSP doesn't properly the type of function parameters inside typed code #1384

Closed
yannham opened this issue Jun 20, 2023 · 0 comments · Fixed by #1395
Closed

The LSP doesn't properly the type of function parameters inside typed code #1384

yannham opened this issue Jun 20, 2023 · 0 comments · Fixed by #1395

Comments

@yannham
Copy link
Member

yannham commented Jun 20, 2023

Describe the bug
When exploring the body of a function inside a statically typed code, hovering on the occurrence of a parameter of the function shows Dyn, instead of the actual type. Note that hovering on the parameter definition (that is, right after the fun) does show the right type.

To Reproduce

Write the following file:

(fun x => x + 1) : _

And hover on the second occurrence of x, just after the =>, which should show Dyn.

Expected behavior
The previous example should show Number, which is the correctly inferred type for x.

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

Successfully merging a pull request may close this issue.

1 participant