perlang-org / perlang

The Perlang Programming Language
https://perlang.org
MIT License
16 stars 1 forks source link

(many) Fix `ASCIIString+ASCIIString` concatenation to return `ASCIIString` #474

Closed perlun closed 4 months ago

perlun commented 4 months ago

The problem with letting it return String (as was the case before this fix) is that the result couldn't be assigned to an ASCIIString variable, but the TypeResolver would still believe the result of such an operation would be a pointer to ASCIIString. The end result would be that we would emit uncompilable C++ code.