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

[Generator] The generator does not handle correctly ref parameters that are not called error. #6626

Closed
mandel-macaque opened this issue Jul 22, 2019 · 1 comment
Assignees
Milestone

Comments

@mandel-macaque
Copy link
Contributor

@mandel-macaque mandel-macaque commented Jul 22, 2019

The generator assumes that all the ref parameters in a delegate are named error. For example, the following code will generate code that cannot be compiled:

delegate int AVAudioSourceNodeRenderBlock (bool isSilence, AudioTimeStamp timestamp, uint frameCount, ref AudioBuffers outputData);

While the following works:

delegate int AVAudioSourceNodeRenderBlock (bool isSilence, AudioTimeStamp timestamp, uint frameCount, ref AudioBuffers error);
@mandel-macaque mandel-macaque self-assigned this Jul 22, 2019
@chamons chamons added this to the Future milestone Jul 22, 2019
@mandel-macaque

This comment has been minimized.

Copy link
Contributor Author

@mandel-macaque mandel-macaque commented Jul 31, 2019

Fixed here: #6620

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.