summaryrefslogtreecommitdiff
path: root/Source/Dafny/Dafny.atg
diff options
context:
space:
mode:
authorGravatar Unknown <leino@LEINO6.redmond.corp.microsoft.com>2012-08-29 15:52:21 -0700
committerGravatar Unknown <leino@LEINO6.redmond.corp.microsoft.com>2012-08-29 15:52:21 -0700
commitb249cf92c8dc61d54fbfed57d432f099b919119f (patch)
tree602488d20388da2081423222e7c2ca6cb275bad1 /Source/Dafny/Dafny.atg
parentcacc8fd2707548f2ad16230e01a59132bf0ea8ae (diff)
Dafny: fixed contract violation in parser (for non-parsing Lhs production)
Diffstat (limited to 'Source/Dafny/Dafny.atg')
-rw-r--r--Source/Dafny/Dafny.atg2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Dafny/Dafny.atg b/Source/Dafny/Dafny.atg
index 5280521f..50f6859e 100644
--- a/Source/Dafny/Dafny.atg
+++ b/Source/Dafny/Dafny.atg
@@ -1418,7 +1418,7 @@ UnaryExpression<out Expression/*!*/ e>
)
.
Lhs<out Expression e>
-= (. e = null; // to please the compiler
+= (. e = dummyExpr; // the assignment is to please the compiler, the dummy value to satisfy contracts in the event of a parse error
.)
( DottedIdentifiersAndFunction<out e>
{ Suffix<ref e> }