Skip to content

Commit 7f1f377

Browse files
Merge #473
473: Specify no binding collisions being allowed in fn param lists r=pietroalbini a=Veykril Fixes #464 Co-authored-by: Lukas Wirth <[email protected]>
2 parents 4cc06da + bb122e4 commit 7f1f377

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/expressions.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3624,6 +3624,9 @@ site of a :t:`call expression` or a :t:`method call expression`.
36243624
The :t:`pattern` of a :t:`closure parameter` shall be an
36253625
:t:`irrefutable pattern`.
36263626

3627+
:dp:`fls_qPeOL6ZhXsgH`
3628+
The :t:`[binding]s` of all :t:`[pattern]s` of all :t:`[closure parameter]s` of a :t:`closure expression` shall not shadow another.
3629+
36273630
:dp:`fls_yn30xuejcfxo`
36283631
The :t:`type` of a :t:`closure expression` is the unique anonymous
36293632
:t:`closure type` defined by it.

src/functions.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ it is an :t:`external function`.
8383
The :t:`pattern` of a :t:`function parameter` shall be an :t:`irrefutable
8484
pattern`.
8585

86+
:dp:`fls_PGDKWK7nPvgw`
87+
The :t:`[binding]s` of all :t:`[pattern]s` of all :t:`[function parameter]s` of a :t:`function` shall not shadow another.
88+
8689
:dp:`fls_vljy4mm0zca2`
8790
A :t:`return type` is the :t:`type` of the result a :t:`function`, :t:`closure type` or :t:`function pointer type` returns.
8891

0 commit comments

Comments
 (0)