Skip to content

Duplicate function argument names #151

Description

@zuzunker

For now, this is a valid IELE code:

define @func(%a, %a) {
  ret %a
}

Compiles and executes without a question. Returns the last argument value, of course, because of how cells work. And I couldn't find any mention of argument names to be required to be unique in the semantics.

Just wanted to clarify for history if this is by design, and if it serves some purpose?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions