[Issue 6578] Ignored const with struct with constructor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 26 04:16:32 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6578
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> 2013-04-26 04:16:29 PDT ---
(In reply to comment #4)
> Yet another test case:
>
> struct S {
> this(int[] arr) immutable {}
> }
> void main() {
> auto s = S([1,2,3]);
> pragma(msg, typeof(s)); // prints immutable(S)
> }
>
> Can be fixed by:
> https://github.com/D-Programming-Language/dmd/pull/1726
Pull-request 1726 is merged, and this issue has been fixed properly.
--
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