Skip to content

Conversation

@eejbyfeldt
Copy link
Contributor

@eejbyfeldt eejbyfeldt commented Dec 29, 2025

Fixes #24813

The fix for #24813 is the also updating the symbol in the line

to.foreach(sym => sym.info = sym.info.substSym(from, to))

the other changes are more clean up so we only have to do that substitution once. Before #7902 the substitution are done both inside substBindings and afterwards. But if done after it the partial substitutions inside are redundant. So this changes it so we only call subst one place.

It unclear if we expect subst to already do this replace? If we do then we should probably fix this in that implementation instead.

The fix for scala#24813 is the also updating the symbol in the line
```
to.foreach(sym => sym.info = sym.info.substSym(from, to))
```

the other changes are more clean up so we only have to do that
substitution once. Before scala#7902
the substitution are done both inside substBindings and afterwards. But
if done after it the partial substitutions inside are redundant. So this
changes it so we only call `subst` one place.

It unclear if we expect `subst` to already do this replace? If we do
then we should probably fix this in that implementation instead.
@eejbyfeldt eejbyfeldt marked this pull request as ready for review December 29, 2025 14:16
@eejbyfeldt eejbyfeldt changed the title Also substitute case bindings in symbols Also substitute symbols in case bindings symbols Dec 29, 2025
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.

Type error after inlining in summonFrom with type parameter

1 participant