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

Renaming a trait when importing it prevents usage of method syntax. #7632

Open
TomAFrench opened this issue Mar 7, 2025 · 0 comments
Open
Labels
bug Something isn't working
Milestone

Comments

@TomAFrench
Copy link
Member

I've opened a PR here with tests for the functionality I would expect: #7631

Currently if there's a collision between a trait name and the name of a type which is currently in scope, there's no way to import this trait such that I can make use of the method syntax to call trait methods. Instead I have to use the function syntax for this trait which is a worse UX.

I would expect that I should be able to rename the trait during import to a non-colliding name and use it as normal.

@TomAFrench TomAFrench added the bug Something isn't working label Mar 7, 2025
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Mar 7, 2025
@TomAFrench TomAFrench added this to the 1.0 milestone Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant