这是indexloc提供的服务,不要输入任何密码
Skip to content

Scoping issue when item is enum type #1151

@SimonCockx

Description

@SimonCockx

When item is of an enum type, values of that enum type can be accessed without the regular EnumType -> ... prefix. This is invalid, and leads to issues in the type system and during code generation.

Example:

enum MyEnum:
  A
  B

reporting rule Rule from MyEnum:
  [A, B] any = item

This is unintended behaviour and leads to invalid Java code.

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