www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12058] New: std.typecons.AutoImplement does not work for inout member functions

reply d-bugmail puremagic.com writes:
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: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 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: -------
Feb 01 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12058


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2014-02-01 23:01:23 PST ---
https://github.com/D-Programming-Language/phobos/pull/1900

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 01 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12058



--- Comment #2 from github-bugzilla puremagic.com 2014-02-02 02:37:22 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/f9d39cbf594e126162918963533418934b9b6f27
fix Issue 12058 - std.typecons.AutoImplement does not work for inout member
functions

https://github.com/D-Programming-Language/phobos/commit/44547e3daddc5ad12cf0df1d1d4390390d90745e
Merge pull request #1900 from 9rnsr/fix12058

Issue 12058 - std.typecons.AutoImplement does not work for inout member
functions

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 02 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12058


monarchdodra gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |monarchdodra gmail.com
         Resolution|                            |FIXED


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