Skip to content

Conversation

tgodzik
Copy link

@tgodzik tgodzik commented Feb 7, 2025

Backports scala#21791 to the 3.3.6.

PR submitted by the release tooling.
[skip ci]

dwijnand and others added 7 commits February 7, 2025 19:03
[Cherry-picked 116f5fe]
Using `constrained` on a TypeLambda means adding one TypeLambda for all
the type parameters in tp1, while newTypeVar creates a TypeLambda for
each type parameter.

[Cherry-picked 28b8c55]
Instead of creating type vars, constraining against them, then
instantiating them, just instantiate the PolyType with the scrutinee
type args (or the lo/hi bound or bounded wildcard from the param).
Instead of creating type vars, constraining against them, then
instantiating them, just instantiate the PolyType with the scrutinee
type args (or the lo/hi bound or bounded wildcard from the param).

[Cherry-picked bdafee6][modified]
@tgodzik tgodzik closed this Feb 13, 2025
@tgodzik tgodzik deleted the backport-lts-3.3-21791 branch February 13, 2025 18:41
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