-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
fix Issue 22931 - importC: Error: 0 has no effect #13912
Conversation
|
Thanks for your pull request, @WalterBright! Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#13912" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Warnings?
| if (e.type is Type.tvoid) | ||
| discardValue(e.e1); | ||
| else if (!e.allowCommaExp && !e.isGenerated && !(sc.flags & SCOPE.Cfile)) | ||
| else if (!e.allowCommaExp && !e.isGenerated) | ||
| e.error("Using the result of a comma expression is not allowed"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unrelated to this PR, but shouldn't result be pointing to an ErrorExp in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're probably right. But that should be a separate PR.
|
@ibuclaw it isn't in ImportC's mission to do warnings. |
No description provided.