[Issue 12212] New: Static array assignment makes slice implicitly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 19 23:09:56 PST 2014


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 at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at 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: -------


More information about the Digitalmars-d-bugs mailing list