diff options
author | leino <unknown> | 2015-07-02 11:19:36 -0700 |
---|---|---|
committer | leino <unknown> | 2015-07-02 11:19:36 -0700 |
commit | cddd9c198b112902977d4e93ff34404fe1df210c (patch) | |
tree | f87542d797b13e0d6015803847d6a4c1dd14b140 | |
parent | 7dcc8c64e6fbcbf2fa40702619795144f9681f24 (diff) | |
parent | 0dd2dcd63d8daaa10ac532d4927acbf4f01ea186 (diff) |
Merge
-rw-r--r-- | Source/Dafny/Compiler.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Dafny/Compiler.cs b/Source/Dafny/Compiler.cs index 9f5b3e93..4fdd34f6 100644 --- a/Source/Dafny/Compiler.cs +++ b/Source/Dafny/Compiler.cs @@ -942,7 +942,7 @@ namespace Microsoft.Dafny { void TrCasePatternOpt(CasePattern pat, Expression rhs, string rhs_string, int indent) {
Contract.Requires(pat != null);
- Contract.Requires(rhs != null);
+ Contract.Requires(pat.Var != null || rhs != null);
if (pat.Var != null) {
// The trivial Dafny "pattern" expression
// var x := G
|