comparison 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
comparison
equal deleted inserted replaced
1312:eac3a538961a 1313:f6001af60ca0
1 // $HeadURL$
2 // $Date$
3 // $HeadURL$
4
5 // @author@ downs <default_357-line@yahoo.de>
6 // @date@ 2006-12-29
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=771
8 // @desc@ [Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error
9
10 module dstress.run.t.tuple_12_A;
11
12 template Concat(S, T...){
13 void delegate(T, S) Concat(void delegate(T) one, void delegate(S) two) {
14 return delegate void(T t, S s){};
15 }
16 }
17
18 int main() {
19 void delegate(char, char, int) dg;
20
21 dg = Concat(
22 delegate void(char a, char b) {},
23 delegate void(int lol) {}
24 );
25
26 return 0;
27 }