From 0ec4f471307251eca0b4ffe6b1969e05366a2b9b Mon Sep 17 00:00:00 2001 From: Steven Schveighoffer Date: Sun, 29 Oct 2023 11:04:54 -0400 Subject: [PATCH] Fix issue 24207 - make AbstractTask private so it's not inadvertently accessible to users of Task. --- std/parallelism.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/parallelism.d b/std/parallelism.d index 3fe8cd61fe0..fadb4c1759d 100644 --- a/std/parallelism.d +++ b/std/parallelism.d @@ -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() {