October 11, 2013 [Issue 7813] lambda lost during header gen | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7813 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Kenji Hara <k.hara.pg@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: ------- |
Copyright © 1999-2021 by the D Language Foundation