Commit ace7c9a
Fix "Regression in zio/zio-schema for typer/implicit resolution" (scala#24156)
Fixes implicit divergence checking regression by correcting how
`TypeSizeAccumulator` handles `TypeParamRef` bounds. Instead of adding
both upper and lower bounds to the type size, we now take the maximum of
both bound sizes.
Fixes scala#24007
[Cherry-picked 0afa50d]1 parent b454c6b commit ace7c9a
File tree
2 files changed
+37
-1
lines changed- compiler/src/dotty/tools/dotc/core
- tests/pos
2 files changed
+37
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6605 | 6605 | | |
6606 | 6606 | | |
6607 | 6607 | | |
6608 | | - | |
| 6608 | + | |
| 6609 | + | |
| 6610 | + | |
| 6611 | + | |
6609 | 6612 | | |
6610 | 6613 | | |
6611 | 6614 | | |
| |||
| 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 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments