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


Erik Baklund <ebakl...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebakl...@hotmail.com


--- Comment #9 from Erik Baklund <ebakl...@hotmail.com> 2011-09-25 01:38:23 PDT 
---
Yet another example:



module main;

struct MyStruct
{
    void funOpAssign(float[1u] data) { }
    void opOpAssign(string op)(float[1u] data) if(op=="<<") { }
}

int main(string[] argv)
{
    // dmd v2.054, v2.055
    MyStruct s;
    float[1u] a = [1.0f]; // OK: Implicit cast from float[] compiles
    s.funOpAssign([1.0f]); // OK: Implicit cast from float[] compiles
    s <<= [1.0f]; // Issue: Implicit cast from float[] does not compile
    s <<= cast(float[1u])[1.0f]; // OK: Explicit cast from float[] compiles

    return 0;
}

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

Reply via email to