view run/t/template_64_A.d @ 1593:a2c2122f2f66

Remove error line information for simple tests that may legitimately have another line referenced in the error message.
author Christian Kamm <kamm incasoftware de>
date Thu, 28 Aug 2008 17:30:16 +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;
}