Commit 8314d2c
committed
fix: string concatenation operator dispatches to $IO$string_concat
When the `+` operator is used on String-typed operands, emit a call to
the ZRTL `$IO$string_concat` extern instead of a numeric add instruction.
Direct string concat (e.g., `println("Hello, " + name)`) and variable
assignment now work correctly.1 parent 9bd1eec commit 8314d2c
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2706 | 2706 | | |
2707 | 2707 | | |
2708 | 2708 | | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
2709 | 2736 | | |
2710 | 2737 | | |
2711 | 2738 | | |
| |||
0 commit comments