Commit dae622d
Emil Ejbyfeldt
Remove seen from TypeSizeAccumulator
This fixes #15692 and does not seem to break an existing compilation
tests. The problem with seen when it comes #15692 is that seen means
that type that has repeated types will get a lower size and this
incorrectly triggers the divergence check since some of the steps
involved less repeated types.
The seen logic was introduced in #6329 and the motivation was to deal
with F-bounds. Since not tests fail it not clear if this logic is still
needed to deal with F-bounds? If it is still needed we can add a test
and instead of removing the seen logic we can make it track only types
the appear as a bound and could cause infinite recursion instead of
tracking all.1 parent e0c030c commit dae622d
File tree
2 files changed
+37
-18
lines changed- compiler/src/dotty/tools/dotc/core
- tests/pos
2 files changed
+37
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6896 | 6896 | | |
6897 | 6897 | | |
6898 | 6898 | | |
6899 | | - | |
6900 | 6899 | | |
6901 | | - | |
6902 | | - | |
6903 | | - | |
6904 | | - | |
6905 | | - | |
6906 | | - | |
6907 | | - | |
6908 | | - | |
6909 | | - | |
6910 | | - | |
6911 | | - | |
6912 | | - | |
6913 | | - | |
6914 | | - | |
6915 | | - | |
6916 | | - | |
6917 | | - | |
| 6900 | + | |
| 6901 | + | |
| 6902 | + | |
| 6903 | + | |
| 6904 | + | |
| 6905 | + | |
| 6906 | + | |
| 6907 | + | |
| 6908 | + | |
| 6909 | + | |
| 6910 | + | |
| 6911 | + | |
| 6912 | + | |
6918 | 6913 | | |
6919 | 6914 | | |
6920 | 6915 | | |
| |||
| 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 | + | |
0 commit comments