https://d.puremagic.com/issues/show_bug.cgi?id=11661

           Summary: Meaningless error: "a struct is not a valid
                    initializer for a void function()"
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Kenji Hara <[email protected]> 2013-12-01 18:09:48 PST ---
This code should work, but doesn't.

void main()
{
    void delegate() dg = {};  // OK
    void function() fp = {};  // NG
}

test.d(4): Error: a struct is not a valid initializer for a void function()

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to