Commit bb28773
committed
Handle aliases when casting to
This is a little bit of a "gotcha".
Now that type aliases are transparent to the aliased type, we need to do
a little extra work before internally casting a type to `Impl` for
mutable operations.
Otherwise, you might try to cast a generated alias implementation to
some unrelated type.*TypeImpl classes1 parent 575b180 commit bb28773
File tree
2 files changed
+8
-2
lines changed- delphi-frontend/src/main/java/au/com/integradev/delphi
- antlr/ast/visitors
- symbol/resolve
2 files changed
+8
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
762 | | - | |
| 762 | + | |
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
517 | 518 | | |
518 | 519 | | |
519 | 520 | | |
520 | | - | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
521 | 527 | | |
522 | 528 | | |
523 | 529 | | |
| |||
0 commit comments