Commit 7a94718
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 c0bdc56 commit 7a94718
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 | |
|---|---|---|---|
| |||
6974 | 6974 | | |
6975 | 6975 | | |
6976 | 6976 | | |
6977 | | - | |
6978 | 6977 | | |
6979 | | - | |
6980 | | - | |
6981 | | - | |
6982 | | - | |
6983 | | - | |
6984 | | - | |
6985 | | - | |
6986 | | - | |
6987 | | - | |
6988 | | - | |
6989 | | - | |
6990 | | - | |
6991 | | - | |
6992 | | - | |
6993 | | - | |
6994 | | - | |
6995 | | - | |
| 6978 | + | |
| 6979 | + | |
| 6980 | + | |
| 6981 | + | |
| 6982 | + | |
| 6983 | + | |
| 6984 | + | |
| 6985 | + | |
| 6986 | + | |
| 6987 | + | |
| 6988 | + | |
| 6989 | + | |
| 6990 | + | |
6996 | 6991 | | |
6997 | 6992 | | |
6998 | 6993 | | |
| |||
| 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