Skip to content

Commit

Permalink
add voidType and exceptionType into typeDataTable.
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/shugo/svn/babel/trunk@214 33db9404-99c8-0310-b29c-c49ad95048ce
  • Loading branch information
shugo committed Dec 15, 2004
1 parent 75c9e43 commit bdf7177
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/typemanager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ protected virtual void InitBuiltinTypes()
strType = AddBuiltinType("str", typeof(string),
typeof(Babel.Core.STR));
voidType = new PredefinedTypeData(this, typeof(void));
typeDataTable.Add(typeof(void), voidType);
exceptionType =
new PredefinedTypeData(this, typeof(System.Exception));
typeDataTable.Add(typeof(System.Exception), exceptionType);
}

protected virtual BuiltinTypeData AddBuiltinType(string name, Type type)
Expand Down

0 comments on commit bdf7177

Please sign in to comment.