summaryrefslogtreecommitdiff
path: root/Source/Core/AbsyExpr.ssc
diff options
context:
space:
mode:
authorGravatar rustanleino <unknown>2010-05-15 01:01:15 +0000
committerGravatar rustanleino <unknown>2010-05-15 01:01:15 +0000
commit66d171a4e4e27dc958c7926cbf76756c7c6c7b11 (patch)
treea88366dc90890cbeeaba082b0e8f28c118d2388b /Source/Core/AbsyExpr.ssc
parenta660fb79bf527b42e3238b1810143f4fc3f3b827 (diff)
Boogie:
* Added support for polymorphism in lambda expressions * Little clean-up here and there * Added 'then' keyword to emacs and latex modes Dafny: * Added support for fine-grained framing, using the back-tick syntax from Region Logic * Internally, changed checking of reads clauses to use a local variable $_Frame, analogous to the $_Frame variable used in checking modifies clauses
Diffstat (limited to 'Source/Core/AbsyExpr.ssc')
-rw-r--r--Source/Core/AbsyExpr.ssc8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/AbsyExpr.ssc b/Source/Core/AbsyExpr.ssc
index ab834cb2..776ff8b3 100644
--- a/Source/Core/AbsyExpr.ssc
+++ b/Source/Core/AbsyExpr.ssc
@@ -565,7 +565,7 @@ namespace Microsoft.Boogie
public class IdentifierExpr : Expr
{
- public string! Name; // identifier symbol
+ public string! Name; // identifier symbol
public Variable Decl; // identifier declaration
/// <summary>
@@ -643,10 +643,10 @@ namespace Microsoft.Boogie
return;
}
Decl = rc.LookUpVariable(Name);
- if (rc.StateMode == ResolutionContext.State.StateLess && Decl is GlobalVariable) {
- rc.Error(this, "cannot refer to a global variable in this context: {0}", Name);
- } else if (Decl == null) {
+ if (Decl == null) {
rc.Error(this, "undeclared identifier: {0}", Name);
+ } else if (rc.StateMode == ResolutionContext.State.StateLess && Decl is GlobalVariable) {
+ rc.Error(this, "cannot refer to a global variable in this context: {0}", Name);
}
if (Type != null) {
Type = Type.ResolveType(rc);