diff run/t/template_63_A.d @ 1529:37c4fce34442

[Issue 1178] templates - deduction + specialization won't compile Leo Dahlmann <leo.dahlmann@gmail.com> 2007-04-23 http://d.puremagic.com/issues/show_bug.cgi?id=1178
author thomask
date Fri, 27 Apr 2007 17:32:31 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_63_A.d	Fri Apr 27 17:32:31 2007 +0000
@@ -0,0 +1,24 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Leo Dahlmann <leo.dahlmann@gmail.com>
+// @date@	2007-04-23
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1178
+// @desc@	[Issue 1178] templates - deduction + specialization won't compile
+
+module dstress.run.t.template_63_A;
+
+template outer(O){
+	O inner(I)(float x, I i){
+		return cast(O) x;
+	}
+}
+
+int main(){
+	if(5.0L != outer!(double).inner!(char[])(5.0f, "hi")){
+		assert(0);
+	}
+
+	return 0;
+}