http://d.puremagic.com/issues/show_bug.cgi?id=4320
Summary: typeof(polymorphic lambda with template alias) is
"void"
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Haruki Shigemori <[email protected]> 2010-06-15 06:38:29
PDT ---
import std.stdio;
void func(alias fn)()
{
writeln(typeid(typeof(fn)));// void, NG!!!
}
void main()
{
int delegate(int) g;
writeln(typeid(typeof(g)));// int delegate(), OK!
writeln(typeid(typeof((int){return 1;})));// int delegate(), OK!
func!((i){return 1;})();
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------