summaryrefslogtreecommitdiff
path: root/Source/Dafny/Printer.cs
diff options
context:
space:
mode:
authorGravatar leino <unknown>2014-08-27 15:28:48 -0700
committerGravatar leino <unknown>2014-08-27 15:28:48 -0700
commit565b411b3dafa597232f99c018a11163dcda5175 (patch)
treed1f5cb65b3462ad3706220981e91b926f5da68cf /Source/Dafny/Printer.cs
parent012d65fe24eba7545bd7bc5f1c9cf8b69fc369e7 (diff)
Disallow parentheses-less declarations of predicates and co-predicates, along with a backward-compatibility warning message if such declarations are attempted
Diffstat (limited to 'Source/Dafny/Printer.cs')
-rw-r--r--Source/Dafny/Printer.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/Dafny/Printer.cs b/Source/Dafny/Printer.cs
index 2ec40e08..56722543 100644
--- a/Source/Dafny/Printer.cs
+++ b/Source/Dafny/Printer.cs
@@ -438,11 +438,7 @@ namespace Microsoft.Dafny {
if (f.SignatureIsOmitted) {
wr.WriteLine(" ...");
} else {
- if (f.OpenParen != null) {
- PrintFormals(f.Formals, f.Name);
- } else {
- Contract.Assert(isPredicate);
- }
+ PrintFormals(f.Formals, f.Name);
if (!isPredicate) {
wr.Write(": ");
PrintType(f.ResultType);