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 4511 - Covariance problem #137

Merged
merged 2 commits into from
Nov 8, 2011
Merged

Conversation

yebblies
Copy link
Member

When returning an expression from an overriding function covariant, ensure the expression is castable to the derived type as well as the base type.

http://d.puremagic.com/issues/show_bug.cgi?id=4511

When returning an expression from an overriding function covariant, ensure the expression is castable to the derived type as well as the base type.
braddr pushed a commit to braddr/dmd that referenced this pull request Sep 15, 2011
Rainer Schuetze's fix to prevent adding override to non-virtual functions
WalterBright added a commit that referenced this pull request Nov 8, 2011
Issue 4511 - Covariance problem
@WalterBright WalterBright merged commit b3bbae5 into dlang:master Nov 8, 2011
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