Skip to content

Commit

Permalink
Fix generic conformance rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Aug 4, 2023
1 parent 3fdfdb0 commit 402fac9
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/generics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ of the :t:`type parameter`.
:t:`[generic argument]s` are :t:`[constant parameter]s` with
:t:`[constant parameter initializer]s`, :t:`[lifetime parameter]s` with
either inferred :t:`[lifetime argument]s` or :t:`[elided lifetime]s`,
:t:`[type parameter]s` with :t:`[type parameter initializer]s`, and
:t:`[type parameter]s` with :t:`[type parameter initializer]s` or inferred
:t:`[type argument]s`, and

* :dp:`fls_us7d30cbwgpz`
All :t:`[lifetime argument]s` come first, followed by
Expand Down Expand Up @@ -461,17 +462,3 @@ The :t:`value` of a :t:`constant parameter` is determined as follows:

* :dp:`fls_Kyar0jH9BqeW`
Otherwise this is a static error.

:dp:`fls_sVTgsE9WwRvm`
The :t:`value` of a :t:`type parameter` is determined as follows:

* :dp:`fls_nFwbc2vX3Ar9`
If the :t:`type parameter` has a conformant :t:`type argument`, then the
:t:`value` is that of the :t:`type argument`.

* :dp:`fls_MaEZ8U4uF8Hz`
Otherwise, if the :t:`type parameter` has a :t:`type parameter initializer`,
then the :t:`value` is that of the :t:`type parameter initializer`.

* :dp:`fls_x98oSjktXHNN`
Otherwise this is a static error.

0 comments on commit 402fac9

Please sign in to comment.