Commit 26b2745
committed
Derived members succeed other givens in cycle test
In avoiding cycles in givens, assume quasi-synthetic derived
members come after other sibling givens (which are eligible).
This preserves the position of the derived symbol (which is not
synthetic); the corresponding tree is appended to the body of
the enclosing template.
The "derived" name prefix is conventional.1 parent c4c48e3 commit 26b2745
File tree
2 files changed
+14
-1
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/pos
2 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1706 | 1706 | | |
1707 | 1707 | | |
1708 | 1708 | | |
1709 | | - | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
1710 | 1712 | | |
1711 | 1713 | | |
1712 | 1714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments