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

Correctly namespace default trait methods #438

Open
Nadrieril opened this issue Feb 12, 2025 · 0 comments
Open

Correctly namespace default trait methods #438

Nadrieril opened this issue Feb 12, 2025 · 0 comments
Assignees

Comments

@Nadrieril
Copy link
Member

Aeneas translates trait methods that have a default body because in the future we may want to refer to them. These methods are named Trait::method, which in Lean causes a name clash with the method field of Trait: both would be named Trait.method. To avoid this clash, in #437 we rename these methods to Trait::default::method.

This however could still cause clashes with a method named default. We should find a naming scheme that is unlikely to clash with other names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants