[Issue 17477] DMD error message for delegate with wrong attributes is very confusing
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Aug 23 07:14:15 UTC 2023
    
    
  
https://issues.dlang.org/show_bug.cgi?id=17477
--- Comment #4 from Eyal <eyal at weka.io> ---
With the fix for issue #10602 - it sounds much better, though even then I don't
think the error should say:
  function `lambdaarg.f(void delegate(int) nothrow dlg)` is not callable using
argument types `(void)`
but rather:
  function `lambdaarg.f(void delegate(int) nothrow dlg)` is not callable using
given template, as it failed to instantiate:
And this is much clearer direction for the programmer to read the actual
problem on the next line.
--
    
    
More information about the Digitalmars-d-bugs
mailing list