view compile/t/template_53_B.d @ 1293:744c4ec3e3e3

[Issue 688] Implicit function template match doesn't work for classes Bill Baxter <wbaxter@gmail.com> 2006-12-14 http://d.puremagic.com/issues/show_bug.cgi?id=688
author thomask
date Sat, 30 Dec 2006 15:39:14 +0000
parents
children
line wrap: on
line source

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

// @author@	Bill Baxter <wbaxter@gmail.com>
// @date@	2006-12-14
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=688
// @desc@	[Issue 688] Implicit function template match doesn't work for classes

module dstress.compile.t.template_53_B;

class Foo(T) {
	T data;
}

void bar(T)(Foo!(T) f){
}

void test(){
	auto x = new Foo!(double);
	bar!(double)(x);
}