diff --git a/src/core/thread/threadbase.d b/src/core/thread/threadbase.d index 170bb65f5e..e3dfb89c07 100644 --- a/src/core/thread/threadbase.d +++ b/src/core/thread/threadbase.d @@ -106,7 +106,7 @@ class ThreadBase } this(void delegate() dg, size_t sz = 0) @trusted pure nothrow @nogc - in( cast(void delegate() const) dg) + in( cast(const void delegate()) dg) { this(sz); m_call = dg;