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

Formatting gets rid of includes #4827

Closed
MikaelMayer opened this issue Nov 29, 2023 · 0 comments · Fixed by #4828
Closed

Formatting gets rid of includes #4827

MikaelMayer opened this issue Nov 29, 2023 · 0 comments · Fixed by #4828
Assignees
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label release-blocker Must be resolved before the next release

Comments

@MikaelMayer
Copy link
Member

Dafny version

latest-nightly

Code to produce this issue

// Main.dfy

include "library.dfy"

module Main {
  import opened Library
  function get_value(): int { value }
}

// library.dfy

module Library {
  const value := 10
}

Command to run and resulting output

Open Main.dfy in vs code, right click, Dafny, format

What happened?

The include statement is removed

What type of operating system are you experiencing the problem on?

Windows

@MikaelMayer MikaelMayer added the kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label label Nov 29, 2023
MikaelMayer added a commit that referenced this issue Nov 29, 2023
Fixes #4827, and I added a test that did not work when the fix was not there.
@MikaelMayer MikaelMayer added the release-blocker Must be resolved before the next release label Nov 29, 2023
@MikaelMayer MikaelMayer self-assigned this Nov 29, 2023
jtristan added a commit that referenced this issue Nov 29, 2023
Fixes #4827, and I added a test that did not work when the fix was not
there.

<small>By submitting this pull request, I confirm that my contribution
is made under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>

---------

Co-authored-by: jtristan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label release-blocker Must be resolved before the next release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant