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 11383 - Some array casts incorrectly rejected in safe code #2796

Merged
merged 1 commit into from Nov 23, 2013

Conversation

yebblies
Copy link
Member

The existing rules banned non-mutable -> mutable and non-shared -> shared, but that was too strict. That restriction is only necessary for classes, due to the implicit reference.

Move modifier check into class-only code and add tests.

https://d.puremagic.com/issues/show_bug.cgi?id=11383

@9rnsr
Copy link
Contributor

9rnsr commented Nov 23, 2013

Auto-merge toggled on

9rnsr added a commit that referenced this pull request Nov 23, 2013
Issue 11383 - Some array casts incorrectly rejected in safe code
@9rnsr 9rnsr merged commit 2e869b9 into dlang:master Nov 23, 2013
@yebblies yebblies deleted the issue11383 branch November 24, 2013 02:45
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