view run/t/template_45_C.d @ 1320:daef239f37cf

sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author thomask
date Sun, 31 Dec 2006 19:59:08 +0000
parents 5d739c1b003f
children
line wrap: on
line source

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

// @author@	Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl>
// @date@	2006-10-27
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=465
// @desc@	[Issue 465] New: errors when trying to use static templated methods

module dstress.run.t.template_45_C;

ifloat status;

struct S {
	static void func(T)(T a) {
		status += a;
        }
}

int main() {
	status = 1.0Fi;

	S.func(2.0Fi);

	if(status != 3.0Fi){
		assert(0);
	}

	return 0;
}