Summary: built-in array opSliceAssign fails with user defined
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-09-10 06:35:34 PDT ---
In a word:

struct S
    void opAssign(int j);

void main()
    int[] i;
    i[] = 5; //Here1

    S[] s;
    s[] = 5; //Here2

Actual behavior:
Here2: Error: cannot implicitly convert expression (5) of type int to S[]

Expected behavior:
Here2: opAssign(5) is called for each member of s, just like for Here1.

Ditto for all other flavors of opSliceSomething.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to