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

Lambdas cannot infer void return type #1163

Closed
degory opened this issue Apr 10, 2024 · 0 comments · Fixed by #1164
Closed

Lambdas cannot infer void return type #1163

degory opened this issue Apr 10, 2024 · 0 comments · Fixed by #1164
Labels

Comments

@degory
Copy link
Owner

degory commented Apr 10, 2024

It should not be necessary to specify explicit void return type for lambdas that return void

let do_something = () => write_line("something");
@degory degory added the bug label Apr 10, 2024
degory added a commit that referenced this issue Apr 10, 2024
Enhancements:
- Allow void values in if expressions (closes #1159)
- Pass type constraints through if let and nested if (closes #1160)

Bugs fixed:
- Signature help not available for constructor calls without new (closes #1161)
- let in not accepted in return statement (closes #1162)
- Lambdas cannot infer void return type (closes #1163)
@degory degory closed this as completed in ba97fc5 Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

1 participant