Mercurial > projects > dstress
view run/c/const_47_A.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
parents | c1943ae1abbf |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Vladimir <thecybershadow@gmail.com> // @date@ 2007-01-03 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=789 // @desc@ [Issue 789] const initialization in forwarding constructors doesn't work module dstress.run.c.const_47_A; class C{ const int a; this(){ a = 3; } this(int x){ this(); } } int main(){ C c = new C(2); if(3 != c.a){ assert(0); } return 0; }