[Issue 7683] New: the attribute has not been correctly inferred in	either the constructor or nested function.
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Mar 11 05:15:29 PDT 2012
    
    
  
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 at puremagic.com
        ReportedBy: Koichi.Takio at gmail.com
--- Comment #0 from Koichi <Koichi.Takio at gmail.com> 2012-03-11 05:15:36 PDT ---
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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list