Mercurial > projects > dstress
annotate run/t/tuple_12_A.d @ 1313:f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
downs <default_357-line@yahoo.de>
2006-12-29
http://d.puremagic.com/issues/show_bug.cgi?id=771
author | thomask |
---|---|
date | Sun, 31 Dec 2006 14:28:37 +0000 |
parents | |
children |
rev | line source |
---|---|
1313
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
2 // $Date$ |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
3 // $HeadURL$ |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
4 |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
5 // @author@ downs <default_357-line@yahoo.de> |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
6 // @date@ 2006-12-29 |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=771 |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
9 |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
10 module dstress.run.t.tuple_12_A; |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
11 |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
12 template Concat(S, T...){ |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
13 void delegate(T, S) Concat(void delegate(T) one, void delegate(S) two) { |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
14 return delegate void(T t, S s){}; |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
15 } |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
16 } |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
17 |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
18 int main() { |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
19 void delegate(char, char, int) dg; |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
20 |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
21 dg = Concat( |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
22 delegate void(char a, char b) {}, |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
23 delegate void(int lol) {} |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
24 ); |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
25 |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
26 return 0; |
f6001af60ca0
[Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
thomask
parents:
diff
changeset
|
27 } |