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

Local bindings are missing in relevant matches for typed holes #544

Open
sharkdp opened this issue Aug 18, 2024 · 0 comments
Open

Local bindings are missing in relevant matches for typed holes #544

sharkdp opened this issue Aug 18, 2024 · 0 comments
Labels
bug Something isn't working good first issue

Comments

@sharkdp
Copy link
Owner

sharkdp commented Aug 18, 2024

The following only shows speed_of_light, c as relevant matches for the hole. But the local binding v0 should be shown as well.

>>> fn v() = 1 km/h + ?
      where v0 = 2 km/h

error: Found typed hole
  ┌─ <input:4>:1:19
  │
1 │ fn v() = 1 km/h + ?
  │                   ^ Velocity
  │
  = Found a hole of type 'Velocity' in the statement:
  =   fn v() -> Velocity = (1 kilometre / hour) + ?
      where v0: Velocity = 2 kilometre / hour
  = Relevant matches for this hole include:
  =   speed_of_light, c
@sharkdp sharkdp added the bug Something isn't working label Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue
Projects
None yet
Development

No branches or pull requests

1 participant