diff dmd/TypeClass.d @ 166:d8565fbd755c

Moved object and classinfo from ClassDeclaration to Global (as part of getting rid of the global state)
author korDen
date Thu, 30 Sep 2010 10:30:15 +0400
parents af1bebfd96a4
children fa9a71a9f5a8
line wrap: on
line diff
--- a/dmd/TypeClass.d	Thu Sep 30 10:04:32 2010 +0400
+++ b/dmd/TypeClass.d	Thu Sep 30 10:30:15 2010 +0400
@@ -192,8 +192,8 @@
 
 			if (ident is Id.classinfo_)
 			{
-				assert(ClassDeclaration.classinfo);
-				Type t = ClassDeclaration.classinfo.type;
+				assert(global.classinfo);
+				Type t = global.classinfo.type;
 				if (e.op == TOK.TOKtype || e.op == TOK.TOKdottype)
 				{
 					/* For type.classinfo, we know the classinfo