[Issue 9281] Enum struct with op overloading doesnt works

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 10 22:52:18 PST 2013


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



--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2013-01-10 22:52:17 PST ---
(In reply to comment #2)
> Yes my fault, I try to simplify too much. Here is more detailed description
> 
> Code which works on 2.060 and don`t compile on 2.061
> 
[snip]

The reason why (Ob2.COLUM_A = "something else") doesn't work in 2.061 is same
as in comment #1. typeof(Ob2.COLUM_A) is a mutable Column, and cannot call
immutable opAssign from that.

> However I find out more interesing thing. This code is almost same however it
> doesn`t work on 2.061 neither 2.060:
> 
[snip]

I think this _was_ an accepts-invalid bug in 2.060.
If you define Ob2.COLUMNS in 2.060, Ob2.COLUM_A is _incorrectly_ typed as
immutable(Column). This is definitely a bug (But I don't know what change is
fixed the bug in 2.060).

So, this is not a regression.

-- 
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