diff options
author | leino <unknown> | 2014-08-27 15:28:48 -0700 |
---|---|---|
committer | leino <unknown> | 2014-08-27 15:28:48 -0700 |
commit | 565b411b3dafa597232f99c018a11163dcda5175 (patch) | |
tree | d1f5cb65b3462ad3706220981e91b926f5da68cf /Source/Dafny/Printer.cs | |
parent | 012d65fe24eba7545bd7bc5f1c9cf8b69fc369e7 (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.cs | 6 |
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);
|