www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7683] New: the attribute has not been correctly inferred in either the constructor or nested function.

http://d.puremagic.com/issues/show_bug.cgi?id=7683

           Summary: the attribute has not been correctly inferred in
                    either the constructor or nested function.
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: Koichi.Takio gmail.com



this code doesn't work!

----------
void main()
{
    foo(0).bar(0);
}

auto foo(T)(T n)
{
    struct FooInner
    {
    public:
        Bar bar(U)(U m)
        {
            return Bar(0);
        }
    }

    return FooInner();
}

struct Bar
{
    this(int n)
    {
    }
}
----------

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