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

Denis Shelomovskij <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
            Summary|Cannot instantiate a class  |Class used as its member
                   |implementing an abstract    |function parameter's
                   |method                      |default value is considered
                   |                            |implementating only
                   |                            |lexically preceeding
                   |                            |abstract functions
                 OS|Windows                     |All

--- Comment #1 from Denis Shelomovskij <[email protected]> ---
---
class B { abstract void f(); }

class C: B
{
    void g(C c = new C) { } // put after `f` to detrigger the issue
    override void f() { }
}
---

Note `interface` implementations are not affected.

--

Reply via email to