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

Default values for arguments #2386

Closed
janmasrovira opened this issue Sep 25, 2023 · 0 comments · Fixed by #2408
Closed

Default values for arguments #2386

janmasrovira opened this issue Sep 25, 2023 · 0 comments · Fixed by #2408
Assignees
Labels
enhancement New feature or request syntax
Milestone

Comments

@janmasrovira
Copy link
Collaborator

janmasrovira commented Sep 25, 2023

f {x : Nat := 0} : {y : Nat := 1} -> Nat := x + y;

Semantically, when we would insert a hole for an implicit argument that has a default value, we insert the default value instead.

@jonaprieto jonaprieto added this to the 0.5.2 milestone Sep 25, 2023
@janmasrovira janmasrovira linked a pull request Sep 28, 2023 that will close this issue
@jonaprieto jonaprieto modified the milestones: 0.5.2, 0.5.3 Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request syntax
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants