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: Don’t entirely delete by-method part in export scope checks #1855

Merged
merged 6 commits into from
Feb 26, 2022

Conversation

RustanLeino
Copy link
Collaborator

Previously, the by-method part of a function-by-method was entirely erased in the module clone used to perform export-set consistency checks. That was incorrect. The by-method part should be erased only if the function-by-method is export-provided. If the function-by-method is export-revealed, then the appropriate thing to do for the clone is to remove the contents of the by-method body, but still keep the empty body around so that the function still looks like a function-by-method.

Fixes #1852

RELEASE_NOTES.md Outdated Show resolved Hide resolved
Copy link
Member

@cpitclaudel cpitclaudel left a comment

Choose a reason for hiding this comment

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

LGTM

@cpitclaudel cpitclaudel enabled auto-merge (squash) February 26, 2022 03:03
@cpitclaudel cpitclaudel merged commit 9f3c7d1 into dafny-lang:master Feb 26, 2022
@RustanLeino RustanLeino deleted the issue-1852 branch March 1, 2022 18:46
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.

function-by-method becomes function method with export set
4 participants