Skip to content

Clean up categorization of type parameters #21237

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

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jul 20, 2024

There are 4 categories, depending on whether

(1) context bounds are allowed and
(2) variances are allowed

Class: yes/yes
Type:  no/no
Hk:    no/yes
Def:   yes/no

Furthermore, Type and Hk parameters can be wildcards. The previous grammars confused Type and Hk parameters and contained other errors as well.

There are 4 categories, depending on whether

 (1) context bounds are allowed and
 (2) variances are allowed

```
Class: yes/yes
Type:  no/no
Hk:    no/yes
Def:   yes/no
```

Furthermore, Type and Hk parameters can be wildcards.
The previous grammars confused Type and Hk parameters and contained
other errors as well.
@odersky odersky merged commit 1790bb5 into scala:main Aug 5, 2024
28 checks passed
@odersky odersky deleted the add-ctx-funs branch August 5, 2024 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants