Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python enum doesn't allow “mro” for member name #185

Closed
dahlia opened this issue Oct 24, 2017 · 1 comment
Closed

Python enum doesn't allow “mro” for member name #185

dahlia opened this issue Oct 24, 2017 · 1 comment
Assignees
Labels
cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) target:python typ:bug Type: Bug/defect

Comments

@dahlia
Copy link
Member

dahlia commented Oct 24, 2017

Due to type.mro() method, Python enum types also don't allow mro for their member name. We need to rename it when it's compiled to Python code.

@dahlia dahlia added cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) target:python typ:bug Type: Bug/defect labels Oct 24, 2017
@kanghyojun kanghyojun self-assigned this Oct 24, 2017
@kanghyojun
Copy link
Member

Working on it!

dahlia added a commit to dahlia/nirum that referenced this issue Nov 5, 2017
The bug nirum-lang#185 is also applicable to
union Tag enums.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) target:python typ:bug Type: Bug/defect
Projects
None yet
Development

No branches or pull requests

2 participants