Commit 674333a
committed
Detect direct cycles of typerefs referring to themselves
Have a Config option that allows to flag as assertion errors
typerefs that refer directly to themselves in a bound or alias.
I am going to use this to track down isRef stackoverflows; I believe
it is also useful to keep around in case similar errors appear later.1 parent 0734ce9 commit 674333a
File tree
2 files changed
+14
-2
lines changed- compiler/src/dotty/tools/dotc
- config
- core
2 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1526 | 1526 | | |
1527 | 1527 | | |
1528 | 1528 | | |
1529 | | - | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
1530 | 1537 | | |
1531 | 1538 | | |
1532 | 1539 | | |
| |||
1562 | 1569 | | |
1563 | 1570 | | |
1564 | 1571 | | |
1565 | | - | |
1566 | 1572 | | |
1567 | 1573 | | |
| 1574 | + | |
1568 | 1575 | | |
1569 | 1576 | | |
1570 | 1577 | | |
| |||
0 commit comments