diff options
author | Dan Rosén <danr@chalmers.se> | 2014-08-14 17:43:34 -0700 |
---|---|---|
committer | Dan Rosén <danr@chalmers.se> | 2014-08-14 17:43:34 -0700 |
commit | 0999203f82d0ff7d0a1f3e981adaa4225b26022d (patch) | |
tree | 9b29c39bd692d8010c5ef7e38a21dc3f8cfc02a2 /Source | |
parent | 4ab6c9f4cfa6295369fde54084f3e1f4ed70d5e4 (diff) |
Reword error message for type error in lambda requires clause
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Dafny/Resolver.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Dafny/Resolver.cs b/Source/Dafny/Resolver.cs index 35086275..7c2c5759 100644 --- a/Source/Dafny/Resolver.cs +++ b/Source/Dafny/Resolver.cs @@ -6983,7 +6983,7 @@ namespace Microsoft.Dafny ResolveExpression(e.Range, twoState, codeContext);
Contract.Assert(e.Range.Type != null); // follows from postcondition of ResolveExpression
if (!UnifyTypes(e.Range.Type, Type.Bool)) {
- Error(expr, "requires clause for lambda must be bool (instead got {0})", e.Range.Type);
+ Error(expr, "Precondition must be boolean (got {0})", e.Range.Type);
}
}
|