diff options
author | 2014-08-11 16:07:38 -0700 | |
---|---|---|
committer | 2014-08-11 16:07:38 -0700 | |
commit | 8797f054f44d114147562689d80c9970d8ea4f82 (patch) | |
tree | 6a9e99a6a39126f946c0e7dd55cf0fa03a1a0ca7 /Source/Dafny/Printer.cs | |
parent | 4cbe4583b329a39dee2b4b456758cafbe7e2fa79 (diff) | |
parent | 08ab990d6f1a188c6cc039d6a2289daf41ff52d3 (diff) |
Merge
Diffstat (limited to 'Source/Dafny/Printer.cs')
-rw-r--r-- | Source/Dafny/Printer.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Dafny/Printer.cs b/Source/Dafny/Printer.cs index ce693036..c6bc563c 100644 --- a/Source/Dafny/Printer.cs +++ b/Source/Dafny/Printer.cs @@ -264,7 +264,10 @@ namespace Microsoft.Dafny { public void PrintClass(ClassDecl c, int indent) {
Contract.Requires(c != null);
Indent(indent);
- PrintClassMethodHelper("class", c.Attributes, c.Name, c.TypeArgs);
+ PrintClassMethodHelper((c is TraitDecl) ? "trait" : "class", c.Attributes, c.Name, c.TypeArgs);
+ if (c.TraitId != null) {
+ wr.Write(" extends {0}", c.TraitId.val);
+ }
if (c.Members.Count == 0) {
wr.WriteLine(" { }");
} else {
|