Conditionally compile TaskFiber.state.
See https://issues.dlang.org/show_bug.cgi?id=17131
This commit is contained in:
parent
2ed82ca975
commit
b8663f9fbc
|
@ -322,11 +322,9 @@ final package class TaskFiber : Fiber {
|
||||||
return ms_globalDummyFiber;
|
return ms_globalDummyFiber;
|
||||||
}
|
}
|
||||||
|
|
||||||
@property State state()
|
// expose Fiber.state as @safe on older DMD versions
|
||||||
@trusted const nothrow {
|
static if (!__traits(compiles, () @safe { return Fiber.init.state; } ()))
|
||||||
return super.state;
|
@property State state() @trusted const nothrow { return super.state; }
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private void run()
|
private void run()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue