www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12212] New: Static array assignment makes slice implicitly

https://d.puremagic.com/issues/show_bug.cgi?id=12212

           Summary: Static array assignment makes slice implicitly
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2014-02-19 23:09:54 PST ---
This code should compile, but doesn't.

void func(int[3] a) {}

void main()
{
    int[3] a, b;
    func(a = b);
    // Error: function func(int[3] a) is not callable using argument types
(int[])
}

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