diff dmd/DsymbolExp.d @ 79:43073c7c7769

updated to 2.035 also implemented a few missing functions still crashes in Import.importAll though
author Trass3r
date Mon, 30 Aug 2010 03:57:51 +0200
parents ef02e2e203c2
children e28b18c23469
line wrap: on
line diff
--- a/dmd/DsymbolExp.d	Sun Aug 29 14:39:08 2010 +0100
+++ b/dmd/DsymbolExp.d	Mon Aug 30 03:57:51 2010 +0200
@@ -18,6 +18,7 @@
 import dmd.FuncExp;
 import dmd.OverExp;
 import dmd.DotTypeExp;
+import dmd.STC;
 import dmd.ScopeExp;
 import dmd.Module;
 import dmd.TypeExp;
@@ -47,7 +48,8 @@
 
 	override Expression semantic(Scope sc)
 	{
-version (LOGSEMANTIC) {
+version (LOGSEMANTIC)
+{
 		printf("DsymbolExp.semantic('%s')\n", s.toChars());
 }
 
@@ -119,6 +121,13 @@
 				}
 			}
 
+			if ((v.storage_class & STC.STCmanifest) && v.init)
+			{
+				e = v.init.toExpression();
+				e.semantic(sc);
+				return e;
+			}
+
 			e = new VarExp(loc, v);
 			e.type = type;
 			e = e.semantic(sc);