Skip to content

Commit 0d6dda3

Browse files
authored
add new implicit conversion
1 parent 47912d4 commit 0d6dda3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

standard/conversions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@ An implicit conversion exists from a *default_literal* ([§11.7.19](expressions.
326326
327327
While throw expressions do not have a type, they may be implicitly converted to any type.
328328
329+
### §switch-expression-conversion Switch expression conversion
330+
331+
There is an implicit conversion from a *switch_expression* (§switch-expression-new-clause) to every type `T` for which there exists an implicit conversion from each *switch_expression_arm*'s expression to `T`.
332+
329333
## 10.3 Explicit conversions
330334
331335
### 10.3.1 General

0 commit comments

Comments
 (0)