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 12778 - Aliasing opBinaryRight to opBinary works only in certain cases #3578

Merged
merged 1 commit into from May 31, 2014

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented May 24, 2014

@@ -587,6 +587,8 @@ Expression *op_overload(Expression *e, Scope *sc)
if (ad2 && id_r)
{
s_r = search_function(ad2, id_r);
if (s_r && s_r == s) // Bugzilla 12778
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer a comment of the form "If both x.opBinary(y) and y.opBinaryRight(x) found, and they are exactly same symbol, x.opBinary(y) should be preferred" which I took from your Bugzilla report!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, Added comment.

WalterBright added a commit that referenced this pull request May 31, 2014
Issue 12778 - Aliasing opBinaryRight to opBinary works only in certain cases
@WalterBright WalterBright merged commit 38c5c36 into dlang:master May 31, 2014
@9rnsr 9rnsr deleted the fix12778 branch May 31, 2014 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants