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

inference doesn't work through && in lambdas #1279

Closed
xfcasio opened this issue Jul 30, 2024 · 1 comment
Closed

inference doesn't work through && in lambdas #1279

xfcasio opened this issue Jul 30, 2024 · 1 comment
Assignees
Labels
Bug Something isn't working Fixed Needs Verification Fixed, but needs verification that it works

Comments

@xfcasio
Copy link

xfcasio commented Jul 30, 2024

the line Callback *f = &&(fn void() { }); yields the error:

12: fn void main() {
13:   Callback *f = &&(fn void() { });
                    ^^^^^^^^^^^^^^^^^
(/home/user/c3/main.c3:13:17) Error: Implicitly casting 'fn void()*' to 'Callback*' (fn String()*) is not permitted, but you may do an explicit cast by placing '(Callback*)' before the expression.

but it compiles and runs correctly when doing Callback *f = &&((Callback) fn void() { });

@lerno lerno self-assigned this Jul 31, 2024
@lerno lerno added the Bug Something isn't working label Jul 31, 2024
@lerno lerno added the Fixed Needs Verification Fixed, but needs verification that it works label Aug 1, 2024
@xfcasio
Copy link
Author

xfcasio commented Aug 3, 2024

pulled newest changes from github and recompiled, seems to be fixed :D
I'll close this issue

@xfcasio xfcasio closed this as completed Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Fixed Needs Verification Fixed, but needs verification that it works
Projects
None yet
Development

No branches or pull requests

2 participants