diff --git a/dmd/func.c b/dmd/func.c index 53b6fba1..75d668c5 100644 --- a/dmd/func.c +++ b/dmd/func.c @@ -1255,8 +1255,7 @@ void FuncDeclaration::semantic3(Scope *sc) 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 {