Skip to content

Remove redundant mapOver in fixThisTypeModuleClassReferences#25440

Open
eejbyfeldt wants to merge 1 commit intoscala:mainfrom
eejbyfeldt:i25362
Open

Remove redundant mapOver in fixThisTypeModuleClassReferences#25440
eejbyfeldt wants to merge 1 commit intoscala:mainfrom
eejbyfeldt:i25362

Conversation

@eejbyfeldt
Copy link
Contributor

@eejbyfeldt eejbyfeldt commented Mar 5, 2026

We should only have mapOver in the default branch or on the returned
type not both as that redundant and causes exponential growth in
compilation time.

fixes: #25362

How much have your relied on LLM-based tools in this contribution?

An LLM did point out the extra mapOver something that was missed when I skimmed the code. And also obviously by the reviewers of #23792. Not sure which place for the mapOver is preferred but having both patterns in the code base probably increases the risk of this pattern landing in the codebase.

How was the solution tested?

Existing and new compilation tests.

Additional notes

We should only have mapOver in the default branch or on the returned
type not both as that redundant and causes exponential growth in
compilation time.

fixes: scala#25362
@eejbyfeldt eejbyfeldt marked this pull request as ready for review March 5, 2026 09:31
@Gedochao Gedochao requested a review from jchyb March 5, 2026 12:04
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.

Exponential compilation time in size of tuple for transparent macro and opaque type

2 participants