-
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.
Fixes #5932 ### Description Previously, there was some conversion code that, in the case of an upcast conversion, was removing a borrow annotation to ensure the object stayed owned. This was done in the context of newtypes that had copy semantics. However, that same piece of code is invoked in cases of variables with non-copy semantics. This PR fixes that by doing a proper check. ### How has this been tested? The test traits.dfy has been extended, was not passing, and now passes. <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
1 parent
f9daa74
commit dd0703f
Showing
6 changed files
with
113 additions
and
80 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,5 +33,4 @@ if [ $? -ne 0 ]; then | |
exit 1 | ||
fi | ||
|
||
rm $output-cs.dtr | ||
python3 DafnyGeneratedFromDafnyPost.py $output |
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
Oops, something went wrong.