view run/t/template_64_A.d @ 1613:70a23cb6a616

Fix incorrect run.t.throw_07_A/B tests
author Christian Kamm <kamm incasoftware de>
date Sun, 10 May 2009 12:10:34 +0200
parents 5e981cf4a7d5
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Christian Kamm <kamm@incasoftware.de>
// @date@	2007-04-24
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=540


module dstress.run.t.template_64_A;

template A(){
	static T foo(T)(T t){
		return t + 1;
	}
}

struct Bar{
	mixin A!() a;
}

int main(){
	if(2 != A!().foo(1)){
		assert(0);
	}
	return 0;
}