Skip to content

Commit c1aa050

Browse files
committed
Address current comments.
1 parent 9d6f8cc commit c1aa050

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

standard/expressions.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,10 +1140,10 @@ Given two types `T₁` and `T₂`, `T₁` is a ***better conversion target*** th
11401140
- `T₁` isTaskType»<S₁>`([§15.14.1](classes.md#15141-general)), `T₂` isTaskType»<S₂>`, and `S₁` is a better conversion target than `S₂`
11411141
- `T₁` isTaskType»<S₁>`([§15.14.1](classes.md#15141-general)), `T₂` isTaskType»<S₂>`, and `T₁` is more specialized than `T₂`
11421142
- `T₁` is `S₁` or `S₁?` where `S₁` is a signed integral type, and `T₂` is `S₂` or `S₂?` where `S₂` is an unsigned integral type. Specifically:
1143-
- `S₁` is `sbyte` and `S₂` is `byte`, `ushort`, `uint`, or `ulong`
1144-
- `S₁` is `short` and `S₂` is `ushort`, `uint`, or `ulong`
1145-
- `S₁` is `int` and `S₂` is `uint`, or `ulong`
1146-
- `S₁` is `long` and `S₂` is `ulong`
1143+
- `S₁` is `sbyte` and `S₂` is `byte`, `ushort`, `uint`, `nuint`, or `ulong`
1144+
- `S₁` is `short` and `S₂` is `ushort`, `uint`, `nuint`, or `ulong`
1145+
- `S₁` is `int` and `S₂` is `uint`, `nuint`, `nuint`, or `ulong`
1146+
- `S₁` is `long` and `S₂` is `nuint`, or `ulong`
11471147
11481148
#### 12.6.4.8 Overloading in generic classes
11491149
@@ -2278,6 +2278,10 @@ In this case the compile-time type of the *element_access* depends on the compil
22782278
22792279
If the *primary_expression* of an *element_access* is:
22802280
2281+
- a value of an array type, the *element_access* is an array access ([§12.8.12.2](expressions.md#128122-array-access));
2282+
- a value of `string` type, the *element_access* is a string access ([§12.8.12.3](expressions.md#128123-string-access));
2283+
- otherwise, the *primary_expression* shall be a variable or value of a class, struct, or interface type that has one or more indexer members, in which case the *element_access* is an indexer access ([§12.8.12.4](expressions.md#128124-indexer-access)).
2284+
22812285
#### 12.8.12.2 Array access
22822286
22832287
For an array access the *argument_list* shall not contain named arguments or by-reference arguments ([§15.6.2.3](classes.md#15623-by-reference-parameters)).

0 commit comments

Comments
 (0)