[Issue 7813] lambda lost during header gen
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 11 07:15:05 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7813
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2013-10-11 07:15:04 PDT ---
With 2.064 git-head,
void foo(alias pred)()
{
}
void bar()() // Make template to output function body in di file
{
foo!(a => a + 1)();
}
dmd -H -o- test.d
Outputs:
// D import file generated from 'test.d'
template foo(alias pred)
{
void foo()
{
}
}
template bar()
{
void bar()
{
foo!((a) => a + 1)(); // correct
}
}
--
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