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

let in not accepted in return statement #1162

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

let in not accepted in return statement #1162

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

Comments

@degory
Copy link
Owner

degory commented Apr 10, 2024

let ... in expressions are not accepted as the value of a return statement

times_two(i: int) -> int is
    return
       let result = i * 2
       in result;
si
@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