changeset 1324:a16119ef8f21

[Issue 756] IFTI for tuples only works if tuple parameter is last <kamm@incasoftware.de> 2006-12-27 http://d.puremagic.com/issues/show_bug.cgi?id=756
author thomask
date Mon, 01 Jan 2007 16:24:24 +0000
parents 2ff35944af8e
children 693d5d43576e
files run/t/tuple_13_A.d run/t/tuple_13_B.d run/t/tuple_13_C.d
diffstat 3 files changed, 54 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/tuple_13_A.d	Mon Jan 01 16:24:24 2007 +0000
@@ -0,0 +1,18 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<kamm@incasoftware.de>
+// @date@	2006-12-27
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=756
+// @desc@	[Issue 756] IFTI for tuples only works if tuple parameter is last
+
+module dstress.run.t.tuple_13_A;
+
+void foo(U...)(int t, U u) {
+}
+
+int main(){
+	foo(1, 2, 3);
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/tuple_13_B.d	Mon Jan 01 16:24:24 2007 +0000
@@ -0,0 +1,18 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<kamm@incasoftware.de>
+// @date@	2006-12-27
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=756
+// @desc@	[Issue 756] IFTI for tuples only works if tuple parameter is last
+
+module dstress.run.t.tuple_13_B;
+
+void foo(U...)(U u, int t) {
+}
+
+int main(){
+	foo(1, 2, 3);
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/tuple_13_C.d	Mon Jan 01 16:24:24 2007 +0000
@@ -0,0 +1,18 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<kamm@incasoftware.de>
+// @date@	2006-12-27
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=756
+// @desc@	[Issue 756] IFTI for tuples only works if tuple parameter is last
+
+module dstress.run.t.tuple_13_C;
+
+void foo(U...)(U u, int t) {
+}
+
+int main(){
+	foo!(int, int)(1, 2, 3);
+	return 0;
+}