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

Bad error message when using a generic method without generic parameters #1228

Closed
Andersama opened this issue Jul 8, 2024 · 1 comment
Closed
Assignees
Labels
Enhancement Request New feature or request Fixed Needs Verification Fixed, but needs verification that it works

Comments

@Andersama
Copy link
Contributor

Yeah this was a bit confusing, I did eventually work out that I was probably not calling the generic properly.

125:                 usz        items        = end_offset - start_offset;
126:
127:                 if (items <= 32) {
128:                     is::isort(list, start_offset, end_offset, fn bool (ElementType* lhs, ElementType* rhs) {
                             ^^^^^
(C:/Users/ajgam/Desktop/Github/c3c_new/out/build/build/lib/std/sort/countingsort.c3:128:25) Error: 'isort' could not be found in std::sort::is.
@lerno lerno self-assigned this Jul 8, 2024
@lerno lerno added Enhancement Request New feature or request Fixed Needs Verification Fixed, but needs verification that it works labels Jul 8, 2024
@lerno
Copy link
Collaborator

lerno commented Jul 8, 2024

This should be better now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Request New feature or request Fixed Needs Verification Fixed, but needs verification that it works
Projects
None yet
Development

No branches or pull requests

2 participants