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

--- Comment #0 from SHOO <> 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:
------- You are receiving this mail because: -------

Reply via email to