Commit e57fc00
committed
Add CaptureVar attachment to TypeDef and its rhs
We cannot post-process the typedef in typedTypeDef in the typer,
because adaptation of the rhs prematurely sets the
symbol info to the old bounds pre-expansion, which will
be caught by checkBounds in posttyper.
It is easier to mark the rhs as well and do the expansion in
typedTypeBoundsTree.1 parent 630a20f commit e57fc00
File tree
2 files changed
+7
-11
lines changed- compiler/src/dotty/tools/dotc
- ast
- parsing
2 files changed
+7
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | 536 | | |
546 | 537 | | |
547 | 538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3560 | 3560 | | |
3561 | 3561 | | |
3562 | 3562 | | |
| 3563 | + | |
3563 | 3564 | | |
| 3565 | + | |
| 3566 | + | |
3564 | 3567 | | |
3565 | 3568 | | |
3566 | 3569 | | |
3567 | 3570 | | |
3568 | | - | |
| 3571 | + | |
3569 | 3572 | | |
3570 | 3573 | | |
3571 | 3574 | | |
| |||
4114 | 4117 | | |
4115 | 4118 | | |
4116 | 4119 | | |
4117 | | - | |
| 4120 | + | |
| 4121 | + | |
| 4122 | + | |
4118 | 4123 | | |
4119 | 4124 | | |
4120 | 4125 | | |
| |||
0 commit comments