diff options
author | Reza Ahmadi <reza.ahmadi@uta.fi> | 2014-12-02 22:27:39 +0200 |
---|---|---|
committer | Reza Ahmadi <reza.ahmadi@uta.fi> | 2014-12-02 22:27:39 +0200 |
commit | bed9924162427012900237f9712fea35f2b814f4 (patch) | |
tree | 5cbbbd81964b1e662d4b82a73431915cc43687d6 /Source/Dafny/Compiler.cs | |
parent | 0b8dd32256eb10c27ee66b5f778e0af26ba7fc8f (diff) |
- fixed a bug in merging fields that come from a parent trait
- added one more test
Diffstat (limited to 'Source/Dafny/Compiler.cs')
-rw-r--r-- | Source/Dafny/Compiler.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Dafny/Compiler.cs b/Source/Dafny/Compiler.cs index 0b8c4254..547b48d6 100644 --- a/Source/Dafny/Compiler.cs +++ b/Source/Dafny/Compiler.cs @@ -249,7 +249,7 @@ namespace Microsoft.Dafny { Indent(indent);
if (cl.TraitObj != null && cl.TraitObj is TraitDecl)
{
- wr.WriteLine("public class @{0} : @{1}", cl.CompileName, ((UserDefinedType)cl.TraitTyp).tok);
+ wr.WriteLine("public class @{0} : @{1}", cl.CompileName, cl.TraitObj.Name);
}
else
wr.Write("public class @{0}", cl.CompileName);
|