Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore a bit of spec language that went missing #10225

Merged
merged 1 commit into from Nov 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion spec/06-expressions.md
Expand Up @@ -1526,7 +1526,9 @@ question: given

- A parameterized method ´m´ of type `(´p_1:T_1, \ldots , p_n:T_n´)´U´` is
_as specific as_ some other member ´m'´ of type ´S´ if ´m'´ is [applicable](#function-applications)
to arguments `(´p_1 , \ldots , p_n´)` of types ´T_1 , \ldots , T_n´.
to arguments `(´p_1 , \ldots , p_n´)` of types ´T_1 , \ldots , T_last´;
if ´T_n´ denotes a repeated parameter (it has shape ´T*´), and so does ´m'´'s last parameter,
´T_last´ is taken as ´T´, otherwise ´T_n´ is used directly.
- A polymorphic method of type `[´a_1´ >: ´L_1´ <: ´U_1 , \ldots , a_n´ >: ´L_n´ <: ´U_n´]´T´` is
as specific as some other member of type ´S´ if ´T´ is as specific as ´S´
under the assumption that for ´i = 1 , \ldots , n´ each ´a_i´ is an abstract type name
Expand Down