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

Add const attribute more strictly #680

Merged
merged 1 commit into from
Jul 10, 2012
Merged

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Jul 10, 2012

This is supplemental change of dmd/pull/1042, but just is required to avoid project breakage.

You can merge this change without compiler fix.

@@ -824,7 +824,7 @@ class Element : Item
* if (e1 == e2) { }
* --------------
*/
override bool opEquals(const Object o)
override const bool opEquals(const Object o)
Copy link
Member

Choose a reason for hiding this comment

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

I see you use trailing const everywhere except starting here... not an issue but stylistic uniformity would be good to have.

andralex added a commit that referenced this pull request Jul 10, 2012
Add const attribute more strictly
@andralex andralex merged commit 408496e into dlang:master Jul 10, 2012
9rnsr added a commit to 9rnsr/phobos that referenced this pull request Jul 17, 2012
This reverts commit 408496e, reversing
changes made to cd361bf.
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