www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17131] New: [Reg 2.074] Fiber.state collides with differently


          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 puremagic.com
          Reporter: code dawg.eu
                CC: sludwig outerproduct.org

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

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

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

Introduced (triggered?) by changing the attributes on

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

Jan 30 2017