Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions working/0524-variance/feature-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ as follows:
- `Si <: Ui` and `Ui <: Si`, and `vi` is `inout`.



### Variance Rules

We say that a type parameter of a generic class, mixin class, enum, mixin,
Expand Down Expand Up @@ -181,8 +180,8 @@ following conditions is true:

It is a compile-time error if a variance modifier is specified for a type
parameter declared in the type parameter list of a declaration of an
extension, a generic function or method, an extension type, or a type
alias; or in the type parameter list of a generic function type.
extension, a generic function or method, or a type alias; or in the type
parameter list of a generic function type.

*Variance is not relevant to extension declarations, because there is no
notion of subsumption. Each usage will be a single call site, and the value
Expand Down