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

Error message says "field" when it should say "label" #3122

Closed
lpil opened this issue May 10, 2024 · 1 comment
Closed

Error message says "field" when it should say "label" #3122

lpil opened this issue May 10, 2024 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Contributions encouraged priority:medium

Comments

@lpil
Copy link
Member

lpil commented May 10, 2024

          0 │+error: Duplicate field
          1 │+  ┌─ /src/one/two.gleam:2:22
          2 │+  │
          3 │+2 │ pub fn one(a a: Int, a b: Float) -> Nil {
          4 │+  │                      ^^^^^^^^^^
          5 │+
          6 │+The field `a` has already been defined. Rename this field.

It is the label that is named a.

@giacomocavalieri
Copy link
Member

I think this issue can be closed now

@lpil lpil closed this as completed May 17, 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 Good for newcomers help wanted Contributions encouraged priority:medium
Projects
None yet
Development

No branches or pull requests

2 participants