Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 4288 – Error on passing delegate to C linkage function. #943

Merged
merged 2 commits into from
May 13, 2012

Conversation

dnadlinger
Copy link
Member

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.

http://d.puremagic.com/issues/show_bug.cgi?id=4288

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.
WalterBright added a commit that referenced this pull request May 13, 2012
Issue 4288 – Error on passing delegate to C linkage function.
@WalterBright WalterBright merged commit 7b1ed63 into dlang:master May 13, 2012
WalterBright added a commit that referenced this pull request May 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants