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

           Summary: Enum struct with op overloading doesnt works
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Daniel Kozak <[email protected]> 2013-01-08 01:42:33 PST ---
module main;

import std.algorithm;
import std.array;

immutable struct Column {
    string opAssign(V)(V tValue) {
        return tValue;
    }
}

immutable test1 = Column();
enum test2 = Column(); 

void main(string[] args)
{
    string where = test1 = "something"; // works ok
    std.stdio.writeln(where);
    where = test2 = "something else"; // works 2.060, dont compile on 2.061
    std.stdio.writeln(where);
}

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

Reply via email to