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 13756 - [AA] Allow ref const index on foreach AA iteration #4152

Merged
merged 1 commit into from Nov 20, 2014

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Nov 20, 2014

@@ -2326,35 +2326,41 @@ Statement *ForeachStatement::semantic(Scope *sc)
{
// Check types
Parameter *arg = (*arguments)[0];
bool isRef = (arg->storageClass & STCref);
Copy link
Member

Choose a reason for hiding this comment

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

(arg->storageClass & STCref) != 0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed for DDMD.

@yebblies
Copy link
Member

LGTM

@yebblies
Copy link
Member

Auto-merge toggled on

yebblies added a commit that referenced this pull request Nov 20, 2014
Issue 13756 - [AA] Allow ref const index on foreach AA iteration
@yebblies yebblies merged commit e1e1368 into dlang:master Nov 20, 2014
@9rnsr 9rnsr deleted the fix13756 branch November 21, 2014 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants