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

Trait impl aliases not found in default trait implementation #7038

Open
julio4 opened this issue Jan 9, 2025 · 0 comments · May be fixed by #7045
Open

Trait impl aliases not found in default trait implementation #7038

julio4 opened this issue Jan 9, 2025 · 0 comments · May be fixed by #7045
Labels
enhancement New feature or request

Comments

@julio4
Copy link
Contributor

julio4 commented Jan 9, 2025

Trait impl aliases not found in trait default implementation.

Cairo version:

2.9.2

To reproduce:

#[generate_trait]
impl TraitImpl of Trait {
    fn call<T, F, +Drop<F>, impl func: core::ops::FnOnce<F, ()>[Output: T], +Drop<T>>(f: F) {
        f();
        // Ok
    }
}

trait DefaultTraitImpl {
    fn call<T, F, +Drop<F>, impl func: core::ops::FnOnce<F, ()>[Output: T], +Drop<T>>(f: F) {
        func::call(f);
     // ˆ Function not found.

        f();
     // ˆ Function not found.
    }
}
@julio4 julio4 added the enhancement New feature or request label Jan 9, 2025
orizi added a commit that referenced this issue Jan 10, 2025
@orizi orizi linked a pull request Jan 10, 2025 that will close this issue
orizi added a commit that referenced this issue Jan 10, 2025
orizi added a commit that referenced this issue Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant