Skip to content

What happens with duplicate members? #80

@LeaVerou

Description

@LeaVerou

Related to #59 #61

  • Are two members with the same name an error or the latter just silently overrides the former? Precedent in classes and object literals points towards the latter
  • If the same member can be provided and required with no error, it seems more consistent that the same member being provided or required twice would also not be an error
  • Consensus between @michaelficarra and I that it is a little weird if we decide in Are "foo" and foo distinct members? #59 that "foo" and foo are not distinct to have one override the other

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions