Skip to content

Commit

Permalink
Fix issue 24207 - make AbstractTask private so it's not inadvertently
Browse files Browse the repository at this point in the history
accessible to users of Task.
  • Loading branch information
schveiguy committed Oct 29, 2023
1 parent 2458e8f commit 0ec4f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/parallelism.d
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ Bugs: Changes to `ref` and `out` arguments are not propagated to the
*/
struct Task(alias fun, Args...)
{
AbstractTask base = {runTask : &impl};
alias base this;
private AbstractTask base = {runTask : &impl};
private alias base this;

private @property AbstractTask* basePtr()
{
Expand Down

0 comments on commit 0ec4f47

Please sign in to comment.