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

Fixed "@disable this" propagating through references (issue 8296) #3411

Merged
merged 1 commit into from Apr 1, 2014

Conversation

Ingrater
Copy link
Contributor

As classes are reference types, disabeling the default constructor should not propagate through struct fields wich are actually references to objects.
https://d.puremagic.com/issues/show_bug.cgi?id=8296

Without this fix it is not allowed to instaniate bar1 using default construction. But this should be allowed as bar1 only contains a single field which is a reference and thus can be (default) initialized with null.

@9rnsr
Copy link
Contributor

9rnsr commented Apr 1, 2014

LGTM.

@9rnsr
Copy link
Contributor

9rnsr commented Apr 1, 2014

Auto-merge toggled on

9rnsr added a commit that referenced this pull request Apr 1, 2014
Fixed "@disable this" propagating through references (issue 8296)
@9rnsr 9rnsr merged commit b56d207 into dlang:master Apr 1, 2014
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