Skip to content

Possible typo with inheritance flow #14895

Closed

Description

@AzmL

The page says: "you can assign an object of the IComparer(Of Person) type to an object of the IComparer(Of Employee) type without using any special conversion methods if Person inherits Employee."

I believe it should be "if Employee inherits Person". If not correct, then the example for covariant generic interfaces is confusing because String inherits Object, not the other way around.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. changed the title [-]Possible confusion with inheritance flow[/-] [+]Possible typo with inheritance flow[/+] on Oct 2, 2019
  2. self-assigned this
    on Oct 2, 2019
  3. added and removed
    ⌚ Not Triaged
    on Oct 2, 2019
  4. added this to the October 2019 milestone on Oct 2, 2019
  5. mairaw commented on Oct 2, 2019

    @mairaw
    Contributor

    Thank you for your feedback @AzmL. I've opened PR #14899 to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions