[Issue 5965] [2.053 beta] map rejects a predicate with anon-func and nested func
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 11 13:32:18 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5965
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> 2011-05-11 13:28:18 PDT ---
Reduced test case:
template mapx(fun...) if (fun.length >= 1)
{
int mapx(Range)(Range r)
{
return 1;
}
}
void test()
{
int foo(int i) { return i; }
int[] arr;
auto x = mapx!( function(int a){return foo(a);} )(arr);
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list