Skip to content

Compiler should check for duplicates in record's property name #1570

@psyCodelist

Description

@psyCodelist

In elm 18, you can create a record like this:

type alias State =
    { title : String
    , forms : Forms.State
    , forms : Forms.State
    }

this will work on all modern browsers except IE 11 and below. It will generate the following Javascript run time error:

"Multiple Definitions of a Property Not Allowed in Strict Mode".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions