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

           Summary: Remove top const doesn't work for inout array type.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: k.hara...@gmail.com


--- Comment #0 from Kenji Hara <k.hara...@gmail.com> 2012-03-08 08:23:41 PST ---
T foo(T)(T a){ return a; }

void test(inout(int[]) a = null)
{
    static assert(is( typeof(    a ) == inout(int[]) ));  // OK
    static assert(is( typeof(foo(a)) == inout(int)[] ));  // NG
    // Error: static assert  (is(typeof(__error) == inout(int)[])) is false
}

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

Reply via email to