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

           Summary: (void delegate() f) is not callable using argument
                    types (void function() pure nothrow @safe)
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Dylan Knutson <[email protected]> 2014-04-04 23:14:08 
PDT ---
This code fails to compile, but should: 

```
void real_func(void delegate() f) {}

// this SHOULD just forward arg as if real_func was called directly
auto forward(T)(T arg) { real_func(arg); }

void main() {
    // fails (shouldn't) 
    forward(() {});

    // doesn't fail
    // real_func(() {});
}
```

related dpaste: http://dpaste.dzfl.pl/dbe351629838

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

Reply via email to