Skip to content

Commit

Permalink
Fix clone of module export decl (dafny-lang#4329)
Browse files Browse the repository at this point in the history
Fixes dafny-lang#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 Sep 15, 2023
1 parent 3e420f3 commit b5a567a
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 b5a567a

Please sign in to comment.