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

Closed
julio4 opened this issue Jan 9, 2025 · 2 comments · Fixed by #7045
Closed

Trait impl aliases not found in default trait implementation #7038

julio4 opened this issue Jan 9, 2025 · 2 comments · 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 added a commit that referenced this issue Jan 10, 2025
orizi added a commit that referenced this issue Jan 11, 2025
orizi added a commit that referenced this issue Jan 12, 2025
orizi added a commit that referenced this issue Jan 12, 2025
…ics of trait fn bodies.

Fixes #7031
Fixes #7038

commit-id:c29f1286
orizi added a commit that referenced this issue Jan 12, 2025
…ics of trait fn bodies.

Fixes #7031
Fixes #7038

commit-id:c29f1286
orizi added a commit that referenced this issue Jan 12, 2025
…ics of trait fn bodies.

Fixes #7031
Fixes #7038

commit-id:c29f1286
orizi added a commit that referenced this issue Jan 12, 2025
…ics of trait fn bodies.

Fixes #7031
Fixes #7038

commit-id:c29f1286
orizi added a commit that referenced this issue Jan 12, 2025
…ics of trait fn bodies.

Fixes #7031
Fixes #7038

commit-id:c29f1286
orizi added a commit that referenced this issue Jan 12, 2025
…ics of trait fn bodies.

Fixes #7031
Fixes #7038

commit-id:c29f1286
@julio4
Copy link
Contributor Author

julio4 commented Jan 13, 2025

@orizi I'm not sure that #7045 solves this issue, I still have the same issue on main

@orizi
Copy link
Collaborator

orizi commented Jan 14, 2025

It is not the same issue, as I added a test with it.
Please make sure again.

In any case there are still other issues with open PRs for them.

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
2 participants