Skip to content

Type names and union tags can't have the same name in Python target #68

@dahlia

Description

@dahlia

In Python target, because union tags are compiled to subtypes, if there's a name shared between a type and a union tag, one of them is overridden by other one. There can be also similar situation when there are tags of the same name but belonging to other unions.

Reported by @yjroot.

Metadata

Metadata

Assignees

Labels

cat:langCategory: Language designcmp:compilerComponent: Compiler backend (e.g., annotation processors, code generators)target:pythontyp:bugType: Bug/defect

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions