Return AAs by `ref` to avoid lvalue compile errors

This commit is contained in:
Albert24GG 2025-08-31 23:11:58 +03:00
parent 5b2dc84027
commit b593c367e1
3 changed files with 3 additions and 3 deletions

View File

@ -216,7 +216,7 @@ extern (C++) class UnmodifiedFinder(AST) : BaseAnalyzerDmd
}
}
@property private extern (D) VarSet currentScope()
@property private extern (D) ref VarSet currentScope()
{
return usedVars[$ - 1];
}

View File

@ -137,7 +137,7 @@ extern (C++) class UnusedParameterCheck(AST) : BaseAnalyzerDmd
}
}
@property private extern (D) ParamSet currentScope()
@property private extern (D) ref ParamSet currentScope()
{
return usedParams[$ - 1];
}

View File

@ -241,7 +241,7 @@ extern (C++) class UnusedVariableCheck(AST) : BaseAnalyzerDmd
}
}
@property private extern (D) VarSet currentScope()
@property private extern (D) ref VarSet currentScope()
{
return usedVars[$ - 1];
}