mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 04:13:14 +01:00
Fix to synchronized function storage class when getting the classinfo via dotExp.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user