Commit f6ae62f
authored
Tighten condition to preserve denotation in IntegrateMap (#23060)
Should fix #23056. I haven't been able to understand exactly what is
going on there yet, but the problem seems to arise in a situation where
the denotation should be reloaded during `integrate` and is not. This PR
makes sure that we keep the previous denotation for `NamedType` _only_
if its prefix is a `ParamRef` bound to the `LambdaType` we are
integrating over.File tree
2 files changed
+24
-2
lines changed- compiler/src/dotty/tools/dotc/core
- tests/pos
2 files changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3858 | 3858 | | |
3859 | 3859 | | |
3860 | 3860 | | |
3861 | | - | |
3862 | | - | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
| 3864 | + | |
| 3865 | + | |
| 3866 | + | |
3863 | 3867 | | |
3864 | 3868 | | |
3865 | 3869 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments