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

fix: Allow datatype update expressions for constructors with nameonly parameters #1949

Merged
merged 3 commits into from
Apr 11, 2022

Conversation

RustanLeino
Copy link
Collaborator

Fixes #1909

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

MikaelMayer
MikaelMayer previously approved these changes Mar 31, 2022
Copy link
Member

@MikaelMayer MikaelMayer left a comment

Choose a reason for hiding this comment

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

Thanks for also cleaning up the code, along with fixing that issue.

filename = tok.filename,
val = f.Name
};
actualBindings.Add(new ActualBinding(bindingName, ctorArg));
Copy link
Member

Choose a reason for hiding this comment

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

Everything else is just refactoring, replacing null by bindingName is the actual fix, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct.

# Conflicts:
#	RELEASE_NOTES.md
Copy link
Member

@MikaelMayer MikaelMayer left a comment

Choose a reason for hiding this comment

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

Great job !

@RustanLeino RustanLeino merged commit b2e96e0 into dafny-lang:master Apr 11, 2022
@RustanLeino RustanLeino deleted the issue-1909 branch April 11, 2022 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Datatype update syntax doesn't work with nameonly fields
2 participants