Summary: parameter types are not checked when assigning a
                    function literal
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from Nils <> 2012-07-17 17:51:08 PDT ---
This compiles since 2.059:
void function(int) f;
void main() {
    f = function(string x) {};

2.058 correctly complains:
Error: cannot implicitly convert expression (__funcliteral1) of type void
function(string x) pure nothrow @safe to void function(int)

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to