view run/c/const_47_A.d @ 1600:6d193e241564

Allow for tango math in creal tests.
author Christian Kamm <kamm incasoftware de>
date Sun, 04 Jan 2009 22:25:02 +0100
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;
}