diff options
author | 2013-11-14 17:17:14 -0800 | |
---|---|---|
committer | 2013-11-14 17:17:14 -0800 | |
commit | efb6efa4fa204c46b4d8ca5e989eb2a088b5a710 (patch) | |
tree | 7b0bf8a27693060d7766639b503fac64432973c3 /Source/Dafny/Printer.cs | |
parent | 0975663860053e1ed568b971abb1e0d25cc48f3a (diff) |
Let compiler complain about body-less functions and methods, even if these are ghost
Diffstat (limited to 'Source/Dafny/Printer.cs')
-rw-r--r-- | Source/Dafny/Printer.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Dafny/Printer.cs b/Source/Dafny/Printer.cs index b82a7169..767d24b8 100644 --- a/Source/Dafny/Printer.cs +++ b/Source/Dafny/Printer.cs @@ -1454,6 +1454,8 @@ namespace Microsoft.Dafny { // this is not expected for a parsed program, but we may be called for /trace purposes in the translator
var e = (BoxingCastExpr)expr;
PrintExpr(e.E, contextBindingStrength, fragileContext, isRightmost, indent);
+ } else if (expr is Translator.BoogieWrapper) {
+ wr.Write("[BoogieWrapper]"); // this is somewhat unexpected, but we can get here if the /trace switch is used, so it seems best to cover this case here
} else {
Contract.Assert(false); throw new cce.UnreachableException(); // unexpected expression
}
|