diff options
author | Bryan Parno <parno@microsoft.com> | 2015-07-02 10:10:59 -0700 |
---|---|---|
committer | Bryan Parno <parno@microsoft.com> | 2015-07-02 10:10:59 -0700 |
commit | 0dd2dcd63d8daaa10ac532d4927acbf4f01ea186 (patch) | |
tree | c8d8574c4bfaacc448570b566666da4d9d0944c4 /Source | |
parent | 50218b46904369dba030ed97067dacc87937003c (diff) |
Fixed a contract error provoked by one of the tests.
Diffstat (limited to 'Source')
-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
|