Skip to content

Implicit conversion between ternary operator branches is sufficient #19468

@TysonMN

Description

@TysonMN

This is a very minor point, but I thought I would share it anyway.

This documentation says

The type of consequent and alternative must be the same, or there must be an implicit conversion from one type to the other.

It is unnecessary to explicitly mention the case of the types being the same since the identity conversion is an implicit conversion.


Document Details

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions