Summary: Better wrong function pointer error message
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-10-01 17:26:10 PDT ---
void bar(void function(const int) f) {}
void foo(const float c) {}
void main() {

DMD 2.056head gives:

test.d(4): Error: function (void function(const const(int)) f) is not
callable using argument types (void function(const const(float) c))
test.d(4): Error: cannot implicitly convert expression (& foo) of type void
function(const const(float) c) to void function(const const(int))

I'd like it to print "const(int)" or "const int" instead "const const(int)".

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

Reply via email to