[Issue 9281] New: Enum struct with op overloading doesnt works
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 8 01:42:34 PST 2013
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: nobody at puremagic.com
ReportedBy: kozzi11 at gmail.com
--- Comment #0 from Daniel Kozak <kozzi11 at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list