Commit 73abb32
committed
Fix renaming of constraints
When we replace a type lambda in a constraint by another,
the type variables associated with the old lambda changed their origin
to point to the new lambda. But that means that the same type
variables in predecessor typestates do not point to their associated
lambda anymore. To fix this, we have to do the same renaming
of type lambdas also in predecessor typestates.1 parent ce60b14 commit 73abb32
File tree
3 files changed
+32
-30
lines changed- compiler/src/dotty/tools/dotc/core
3 files changed
+32
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
| |||
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
| 156 | + | |
| 157 | + | |
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
| |||
Lines changed: 4 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
| 488 | + | |
506 | 489 | | |
507 | 490 | | |
508 | 491 | | |
509 | 492 | | |
510 | 493 | | |
511 | 494 | | |
512 | 495 | | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
| 496 | + | |
| 497 | + | |
517 | 498 | | |
518 | | - | |
| 499 | + | |
519 | 500 | | |
520 | 501 | | |
521 | 502 | | |
522 | 503 | | |
523 | 504 | | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | 505 | | |
529 | 506 | | |
530 | | - | |
531 | 507 | | |
532 | 508 | | |
533 | 509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
133 | 153 | | |
| 154 | + | |
134 | 155 | | |
135 | 156 | | |
136 | 157 | | |
| |||
0 commit comments