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

Allow type signatures to have a body #1785

Merged
merged 2 commits into from
Jan 31, 2023

Conversation

janmasrovira
Copy link
Collaborator

@janmasrovira janmasrovira commented Jan 30, 2023

A function type signature is now allowed to have a body. This is valid for both top level and let definitions.

not : Bool -> Bool := λ {
 | true := false
 | false := true
};

@janmasrovira janmasrovira added this to the 0.3 - Valencia milestone Jan 30, 2023
@janmasrovira janmasrovira self-assigned this Jan 30, 2023
@janmasrovira janmasrovira linked an issue Jan 30, 2023 that may be closed by this pull request
@janmasrovira janmasrovira marked this pull request as ready for review January 30, 2023 17:11
@paulcadman paulcadman self-requested a review January 31, 2023 08:34
Copy link
Collaborator

@paulcadman paulcadman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🌟

@paulcadman paulcadman merged commit 38622b2 into main Jan 31, 2023
@paulcadman paulcadman deleted the 1637-typing-for-variables-in-let-expressions branch January 31, 2023 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typing for variables in let expressions
2 participants