April 26, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7991

           Summary: Regression (2.057): Cannot pass subtype by reference
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: andrej.mitrovich@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-04-26 13:25:52 PDT ---
This used to work in 2.057:

struct Foo { }

struct Bar
{
    Foo foo;
    alias foo this;
}

void test(ref Foo foo) { }

void main()
{
    Bar bar;
    test(bar);
}

But in 2.058 and 2.059:
Error: function test.test (ref Foo foo) is not callable using argument types
(Bar)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7991


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-05-20 23:46:01 PDT ---
*** This issue has been marked as a duplicate of issue 7945 ***

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