[Issue 12277] static opCall is hidden by @disabled constructors and can never be called

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jul 24 09:09:59 PDT 2014


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

Nick Treleaven <ntrel-public at yahoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ntrel-public at yahoo.co.uk

--- Comment #1 from Nick Treleaven <ntrel-public at yahoo.co.uk> ---
Note that the error on your code is correct as you define this(int) - see bug
12194.

This issue is not the same as that one, as @disable this alone triggers the
error:

struct S
{
    @disable this();

    static S opCall(){
        return S.init;
    }
}

--


More information about the Digitalmars-d-bugs mailing list