Mercurial > projects > dstress
view 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 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $HeadURL$ // @author@ downs <default_357-line@yahoo.de> // @date@ 2006-12-29 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=771 // @desc@ [Issue 771] template func returns delegate w. param list from tuple and type, odd compiler error module dstress.run.t.tuple_12_A; template Concat(S, T...){ void delegate(T, S) Concat(void delegate(T) one, void delegate(S) two) { return delegate void(T t, S s){}; } } int main() { void delegate(char, char, int) dg; dg = Concat( delegate void(char a, char b) {}, delegate void(int lol) {} ); return 0; }