summaryrefslogtreecommitdiff
path: root/Source/Dafny/DafnyAst.cs
diff options
context:
space:
mode:
authorGravatar Jason Koenig <unknown>2012-06-28 14:37:27 -0700
committerGravatar Jason Koenig <unknown>2012-06-28 14:37:27 -0700
commit587a1d9c3037baeedd3aa02caba44e6c579f7b51 (patch)
tree996bfb309e5acb9caff38bb1f01c5818c687511e /Source/Dafny/DafnyAst.cs
parent4d47434ee4aec14f124008ab73ba089d2372bfb1 (diff)
Dafny: fixed bug with translation of class._System.object;
Diffstat (limited to 'Source/Dafny/DafnyAst.cs')
-rw-r--r--Source/Dafny/DafnyAst.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Dafny/DafnyAst.cs b/Source/Dafny/DafnyAst.cs
index 8038be10..f6ba6014 100644
--- a/Source/Dafny/DafnyAst.cs
+++ b/Source/Dafny/DafnyAst.cs
@@ -41,11 +41,11 @@ namespace Microsoft.Dafny {
{
public readonly ModuleDefinition SystemModule = new ModuleDefinition(Token.NoToken, "_System", false, false, null, null);
Dictionary<int, ClassDecl/*!*/> arrayTypeDecls = new Dictionary<int, ClassDecl>();
-
+ public readonly ClassDecl ObjectDecl;
public BuiltIns() {
// create class 'object'
- ClassDecl obj = new ClassDecl(Token.NoToken, "object", SystemModule, new List<TypeParameter>(), new List<MemberDecl>(), null);
- SystemModule.TopLevelDecls.Add(obj);
+ ObjectDecl = new ClassDecl(Token.NoToken, "object", SystemModule, new List<TypeParameter>(), new List<MemberDecl>(), null);
+ SystemModule.TopLevelDecls.Add(ObjectDecl);
// add one-dimensional arrays, since they may arise during type checking
UserDefinedType tmp = ArrayType(Token.NoToken, 1, Type.Int, true);
}