[Issue 2610] const/invariant(immutable) class don't have constructor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 18 19:59:12 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2610
--- Comment #3 from Haruki Shigemori <rayerd.wiz at gmail.com> 2010-05-18 19:59:09 PDT ---
(In reply to comment #1)
> You closed this bug as fixed, but what was the resolution?
Sorry. I should have written a reason.
(In reply to comment #2)
> This code compiles and runs fine on dmd v.2.046.
>
> immutable class A {
> string s;
> this() {
> s = "hoge";
> }
> }
> void main() {
> A a = new A;
> }
Thanks!
--
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