http://d.puremagic.com/issues/show_bug.cgi?id=7265
Summary: Function Literals where a keyword was omitted should be delegate even if inference. Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: zan77...@nifty.com --- Comment #0 from SHOO <zan77...@nifty.com> 2012-01-10 09:30:54 PST --- This code should be work (on git head): ------- import std.stdio; void main() { auto dg = { writeln("delegate"); }; static assert(is(typeof(dg) == delegate)); } ------- main.d(6): Error: static assert (is(void function() == delegate)) is false ------- This is being documented as follows: > If the keywords function or delegate are omitted, it defaults to being a > delegate. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------