Skip to content

[OM] Missing verifier that output field names don't collide with inputs? #9252

@seldridge

Description

@seldridge

Consider the following:

om.class @Bar_Class(
  %a: !om.integer
) -> (
  a: !om.integer
) {
  om.class.fields %a : !om.integer
}

The input and output have the same name a. However, there is no verifier to check this. Is this a bug?

I ran into this when using the evaluator where I accidentally did this and some of the logic for getting the fields was then getting the wrong field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions