Skip to content

Commit

Permalink
Fix clone of module export decl (#4329)
Browse files Browse the repository at this point in the history
Fixes #4328

### Changes
Fix clone method of ModuleExportDecl

### Testing
No tests added.

Instead, we should run part of the testsuite using the IDE instead of
the CLI, since the IDE runs additional code (caching code, which
currently uses cloning, which isn't tested well)

<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>
  • Loading branch information
keyboardDrummer committed Jul 24, 2023
1 parent 4df078a commit 0535624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/DafnyCore/AST/Modules/ModuleExportDecl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public ModuleExportDecl(Cloner cloner, ModuleExportDecl original, ModuleDefiniti
ProvideAll = original.ProvideAll;
RevealAll = original.RevealAll;
IsRefining = original.IsRefining;
IsDefault = original.IsDefault;
ThisScope = new VisibilityScope(FullSanitizedName);
}

Expand Down
1 change: 1 addition & 0 deletions docs/dev/news/fix.4328
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix issue that would prevent the IDE from correctly handling default export sets

0 comments on commit 0535624

Please sign in to comment.