changeset 1143:b28a57f4b530

Fix to synchronized function storage class when getting the classinfo via dotExp.
author Christian Kamm <kamm incasoftware de>
date Wed, 25 Mar 2009 08:13:01 +0100
parents 49421d3ac5a7
children cdda73cf2f8a
files dmd/func.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dmd/func.c	Tue Mar 24 21:18:29 2009 +0100
+++ b/dmd/func.c	Wed Mar 25 08:13:01 2009 +0100
@@ -1255,8 +1255,7 @@
 		if (isStatic())
 		{
 		    // static member functions synchronize on classinfo 
-		    // (the expression passed doesn't matter)
-		    sync = cd->type->dotExp(sc2, new DollarExp(loc), Id::classinfo);
+		    sync = cd->type->dotExp(sc2, new TypeExp(loc, cd->type), Id::classinfo);
 		}
 		else
 		{