Skip to content

13.8.3 The switch statement - edit loses base type text #131

@Nigel-Ecma

Description

@Nigel-Ecma

In revising the paragraph defining governing type:

The governing type of a switch statement … Otherwise, exactly one user-defined implicit
conversion operator (§13.4) shall exist from the type of the switch expression or a base type of this type to one of the following possible governing types …

into a bulleted list which handles the inclusion of nullable value types the Proposal has lost the base type text above:

… or a base type of this type …

producing the bullet:

• Otherwise, exactly one user-defined implicit conversion shall exist from the type of the switch expression to one of the following possible governing types …

The reason for this deletion is not immediately apparent, and it is quite possible this is a regression.

Proposal:

Assuming this is a regression, add the lost phrase into the Proposal's bulleted item.

Metadata

Metadata

Assignees

Labels

meeting: discussThis issue should be discussed at the next TC49-TG2 meetingtype: bugThe Standard does not describe the language as intended or implemented

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions