-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Missing escaping when creating import of existing Go module (#5767)
### Description <!-- Is this a user-visible change? Remember to update RELEASE_NOTES.md --> <!-- Is this a bug fix for an issue visible in the latest release? Mention this in the PR details and ensure a patch release is considered --> See test for what this fixes: without this fix we end up with an import on the consumer side that says `import Math ".../Math"` when the correct name is `Math_`. ### How has this been tested? Augmented the `timesTwo.dfy` separate compilation test. <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: Mikael Mayer <[email protected]>
- Loading branch information
1 parent
ab3d5d6
commit b5f57e0
Showing
4 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...grationTests/TestFiles/LitTests/LitTest/comp/separate-compilation/usesTimesTwo.dfy.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
Two times 21 is 42 | ||
20 plus 22 is 42 | ||
Two times 21 is 42 | ||
20 plus 22 is 42 | ||
Two times 21 is 42 | ||
20 plus 22 is 42 | ||
Two times 21 is 42 | ||
20 plus 22 is 42 |