Skip to content

Commit

Permalink
Add tests for previously fixed bug (#3959)
Browse files Browse the repository at this point in the history
Closes #2103

Issue #2103 was fixed as part of PR #3893.

<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
RustanLeino committed May 5, 2023
1 parent d3d6087 commit a2159ca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Test/git-issues/git-issue-2103.dfy
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// RUN: %testDafnyForEachCompiler "%s"

datatype DT_<+A> = DT(ret: A)
type DT<A> = r: DT_<A> | true witness *

method Main() {
var d := DT(3);
print d, "\n"; // 3
}
1 change: 1 addition & 0 deletions Test/git-issues/git-issue-2103.dfy.expect
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3

0 comments on commit a2159ca

Please sign in to comment.