D-Programming-Language/dmd — pull request #943 by klickverbot (2012-05-12 14:12:57+00:00)
Title: Issue 4288 – Error on passing delegate to C linkage function.

This commit makes TypeDelegate::toCBuffer2 reuse the same code as for function pointers, which solves the problem that the linkage type is not included in error messages.

Previously, nonsensical messages like »cannot implicitly convert expression (dg) of type void delegate() to void delegate()« would be emitted.