You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: standard/interfaces.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,21 +94,21 @@ If a generic interface is declared in multiple parts ([§15.2.3](classes.md#1523
94
94
95
95
#### 19.2.3.2 Variance safety
96
96
97
-
The occurrence of variance annotations in the type parameter list of a type restricts the places where types can occur within the type declaration.
97
+
The occurrence of variance annotations in the type parameter list of a type restricts the places where types can occur within the type declaration. However, these restrictions do not apply to occurrences of types within a declaration of a static member.
98
98
99
-
A type T is ***output-unsafe*** if one of the following holds:
99
+
A type `T` is ***output-unsafe*** if one of the following holds:
100
100
101
101
- `T` is a contravariant type parameter
102
102
- `T` is an array type with an output-unsafe element type
103
103
- `T` is an interface or delegate type `Sᵢ,... Aₑ` constructed from a generic type `S<Xᵢ, ... Xₑ>` where for at least one `Aᵢ` one of the following holds:
104
104
- `Xᵢ` is covariant or invariant and `Aᵢ` is output-unsafe.
105
105
- `Xᵢ` is contravariant or invariant and `Aᵢ` is input-unsafe.
106
106
107
-
A type T is ***input-unsafe*** if one of the following holds:
107
+
A type `T` is ***input-unsafe*** if one of the following holds:
108
108
109
109
- `T` is a covariant type parameter
110
110
- `T` is an array type with an input-unsafe element type
111
-
- `T` is an interface or delegate type `S<Aᵢ,... Aₑ>` constructed from a generic type `S<Xᵢ, ... Xₑ>` where for at least one `Aᵢ` one of the following holds:
111
+
- `T` is an interface or delegate type `S<Aᵢ,... Aₑ>` constructed from a generic type `S<Xᵢ, ... Xₑ>` where for at least one `Aᵢ` one of the following holds:
112
112
- `Xᵢ` is covariant or invariant and `Aᵢ` is input-unsafe.
113
113
- `Xᵢ` is contravariant or invariant and `Aᵢ` is output-unsafe.
0 commit comments