Summary: function called with argument types ((void
                    function())) matches both f(void function() fn) and
                    f(void delegate() dg)
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from luka8088 <> 2012-10-17 08:47:57 PDT ---

import std.stdio;

void f (void function () fn) {}
void f (void delegate () dg) {}

void main () {
  f({ writeln("f"); });


Compilation output:

/home/c713/c345.d(8): Error: function c345.f called with argument types:
((void function()))
matches both:
/home/c713/c345.d(4): c345.f(void function() fn)
/home/c713/c345.d(5): c345.f(void delegate() dg)

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

Reply via email to