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

Duplicate field definition #533

Closed
ordavidil opened this Issue Mar 22, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@ordavidil

ordavidil commented Mar 22, 2016

Hey,

So I just started with Elm and it feels great for now, thanks.

It seems that the compiler allow me to define the same field twice, even with a different type, it just takes the latest definition but I would've expect it will raise an error.

Example:

type alias Model =
  { id: Int
  , a: Int
  , a: String
  }
@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
@jvoigtlaender

jvoigtlaender Mar 22, 2016

Contributor

Please report this at https://github.com/elm-lang/elm-compiler instead of here (core is the standard library, not the compiler).

Contributor

jvoigtlaender commented Mar 22, 2016

Please report this at https://github.com/elm-lang/elm-compiler instead of here (core is the standard library, not the compiler).

@ordavidil

This comment has been minimized.

Show comment
Hide comment
@ordavidil

ordavidil Mar 22, 2016

Thanks, sorry about that.

ordavidil commented Mar 22, 2016

Thanks, sorry about that.

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