--- Comment #1 from 2012-09-12 01:47:03 PDT ---
The issue can be worked around as such:

struct S
    int i;
    void opAssign(S);
    void opAssign(int j);

void main()
    ulong[] i;
    i[] = cast(ushort)5; //Here1

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

However, this shifts the requirement:
*from isAssignable!(S,V)
*to isAssignable!(S,S) && "canBeConstructedFrom!(S, V)"

Where S is the user defined struct, and V is another type.

Note that the built-in opSliceAssign DOES support assignement of V to S
(HERE1), so there is indeed a limitation/bug/ER.

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

Reply via email to