[Issue 2610] const/invariant(immutable) class don't have constructor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 18 11:53:05 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2610
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs at eml.cc
--- Comment #2 from bearophile_hugs at eml.cc 2010-05-18 11:53:01 PDT ---
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;
}
--
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