[Issue 6578] Ignored const with struct with constructor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 6 23:11:55 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6578
--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> 2013-03-06 23:11:53 PST ---
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
--
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