Skip to content

Fix #9965: Properly handle class type parameters when copying symbols #10915

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 4 commits into from
Jan 4, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 26, 2020

Fixes #9965

@odersky
Copy link
Contributor Author

odersky commented Dec 26, 2020

test performance please

@dottybot
Copy link
Member

performance test scheduled: 7 job(s) in queue, 1 running.

@dottybot
Copy link
Member

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/10915/ to see the changes.

Benchmarks is based on merging with master (d8a6056)

val decls1 = newScope
val newTypeParams = mapSymbols(original.typeParams, ttmap1, mapAlways = true)
newTypeParams.foreach(decls1.enter)
for sym <- decls do if !sym.is(TypeParam) then decls1.enter(sym)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
for sym <- decls do if !sym.is(TypeParam) then decls1.enter(sym)
for sym <- decls if !sym.is(TypeParam) do decls1.enter(sym)

@nicolasstucki nicolasstucki merged commit 8b430a2 into scala:master Jan 4, 2021
@nicolasstucki nicolasstucki deleted the fix-#9965 branch January 4, 2021 09:36
@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bad parameter reference for inlined given definition
4 participants