Skip to content

Conversation

yebblies
Copy link
Contributor

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