https://d.puremagic.com/issues/show_bug.cgi?id=12058

           Summary: std.typecons.AutoImplement does not work for inout
                    member functions
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Kenji Hara <[email protected]> 2014-02-01 22:57:18 PST ---
Test code:

interface Foo
{
    inout(Object) foo() inout;
}
void main()
{
    import std.typecons;
    BlackHole!Foo o;
}

Output:
C:\dmd2\src\phobos\std\typecons.d-mixin-2067(2068): Error: inout on return
means inout must be on a parameter as well for
autoImplement_helper_.F_foo_0.RT()
C:\dmd2\src\phobos\std\typecons.d(1867): Error: template instance
std.typecons.AutoImplement!(Foo, generateEmptyFunction, isAbstractFunction)
error instantiating
test.d(8):        instantiated from here: BlackHole!(Foo)
test.d(8): Error: template instance std.typecons.BlackHole!(Foo) error
instantiating

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to