[Issue 17131] New: [Reg 2.074] Fiber.state collides with differently attributed function in derived class

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jan 30 09:04:23 PST 2017


https://issues.dlang.org/show_bug.cgi?id=17131

          Issue ID: 17131
           Summary: [Reg 2.074] Fiber.state collides with differently
                    attributed function in derived class
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: code at dawg.eu
                CC: sludwig at outerproduct.org

cat > bug.d << CODE
import core.thread;

class TaskFiber : Fiber {
    this() { super({}); }
    State state() @trusted const nothrow { return super.state; }
}
CODE

dmd -c -o- bug
----
bug.d(7): Error: function bug.TaskFiber.state cannot override final function
core.thread.Fiber.state
----

Introduced (triggered?) by changing the attributes on
core.thread.Fiber.state().
https://github.com/dlang/druntime/pull/1726

Currently breaks vibe.d and a couple of projects on https://ci.dawg.eu.

--


More information about the Digitalmars-d-bugs mailing list