Skip to content

Commit

Permalink
fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
BillWagner committed Oct 2, 2022
1 parent 6bfda1e commit 3d3ae0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion standard/conversions.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ Anonymous functions and method groups do not have types in and of themselves, bu
### §default-literal-new-clause Default literal conversions
An implicit conversion exists from a *default_literal* ([§12.7.15](expressions.md#12715-default-value-expressions)) to any type. This conversion produces the default value ([§10.3](variables.md#103-default-values)) of the inferred type.
An implicit conversion exists from a *default_literal* ([§11.7.19](expressions.md#11719-default-value-expressions)) to any type. This conversion produces the default value ([§9.3](variables.md#93-default-values)) of the inferred type.
## 10.3 Explicit conversions
Expand Down
4 changes: 2 additions & 2 deletions standard/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3649,7 +3649,7 @@ The `is` operator is described in [§11.11.11](expressions.md#111111-the-is-oper

The `==`, `!=`, `<`, `>`, `<=` and `>=` operators are ***comparison operators***.

If a *default_literal* ([§12.7.15](expressions.md#12715-default-value-expressions)) is used as an operand of a `<`, `>`, `<=`, or `>=` operator, a compile-time error occurs.
If a *default_literal* ([§11.7.19](expressions.md#11719-default-value-expressions)) is used as an operand of a `<`, `>`, `<=`, or `>=` operator, a compile-time error occurs.
If a *default_literal* is used as both operands of a `==` or `!=` operator, a compile-time error occurs. If a *default_literal* is used as the left operand of the `is` or `as` operator, a compile-time error occurs.

If an operand of a comparison operator has the compile-time type `dynamic`, then the expression is dynamically bound ([§11.3.3](expressions.md#1133-dynamic-binding)). In this case the compile-time type of the expression is `dynamic`, and the resolution described below will take place at run-time using the run-time type of those operands that have the compile-time type `dynamic`.
Expand Down Expand Up @@ -4271,7 +4271,7 @@ The conditional operator is right-associative, meaning that operations are group
The first operand of the `?:` operator shall be an expression that can be implicitly converted to `bool`, or an expression of a type that implements `operator true`. If neither of these requirements is satisfied, a compile-time error occurs.

The second and third operands, `x` and `y`, of the `?:` operator control the type of the conditional expression. If both `x` and `y` are *default_literal*s ([§12.7.15](expressions.md#12715-default-value-expressions)), a compile-time error occurs.
The second and third operands, `x` and `y`, of the `?:` operator control the type of the conditional expression. If both `x` and `y` are *default_literal*s ([§11.7.19](expressions.md#11719-default-value-expressions)), a compile-time error occurs.

- If `x` has type `X` and `y` has type `Y` then,
- If `X` and `Y` are the same type, then this is the type of the conditional expression.
Expand Down
2 changes: 1 addition & 1 deletion standard/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ The default value of a variable depends on the type of the variable and is deter
- For a variable of a *value_type*, the default value is the same as the value computed by the *value_type*’s default constructor ([§8.3.3](types.md#833-default-constructors)).
- For a variable of a *reference_type*, the default value is `null`.
- In an unsafe context, for a variable of a *pointer_type*, the default value is `null`.
> *Note*: Initialization to default values is typically done by having the memory manager or garbage collector initialize memory to all-bits-zero before it is allocated for use. For this reason, it is convenient to use all-bits-zero to represent the null reference. *end note*
## 9.4 Definite assignment
Expand Down

0 comments on commit 3d3ae0d

Please sign in to comment.