Skip to content

Disallow type lambdas as F-bounds #11013

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
Jan 7, 2021
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jan 6, 2021

Given parameter

C <: [Y] => ... C[T] ...

change error message for C[T] to explain that type lambdas are not supported
as F-bounds.

Fixes #8752

by making the error message ckearer.

Given parameter
```
C <: [Y] => ... C[T] ...
```
change error message for `C[T]` to explain that type lambdas are not supported
as F-bounds
@odersky odersky added the fasttrack Simple fix. Reviewer should merge or apply additional changes directly. label Jan 7, 2021
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@liufengyun liufengyun merged commit 8effbc4 into scala:master Jan 7, 2021
@liufengyun liufengyun deleted the fix-#8752 branch January 7, 2021 10:23
@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fasttrack Simple fix. Reviewer should merge or apply additional changes directly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type Lambdas not accepted in F-Bound expression
3 participants