http://d.puremagic.com/issues/show_bug.cgi?id=5994

           Summary: Regression(2.038) Function pointer assignments are not
                    type-checked
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: samu...@voliacable.com


--- Comment #0 from Max Samukha <samu...@voliacable.com> 2011-05-13 00:51:35 
PDT ---
Only return types seem to be checked. This should not compile:

alias void function(byte a) foo_t;
void foo(int x) {}
foo_t foo_p = &foo;

void main()
{   
}

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

Reply via email to