Unicode string concatenation

I am trying to go around the ANSI source code limitations by preprocessing the script and replacing Unicode characters inside strings with explicit character codes (e.g #1074). Everything works fine except for one little thing:

s := ‘abc’ + #1074#1099;

This expression is evaluated incorrectly. The evaluation fails at compile stage. Same goes to comparing string or char to Unicode string. Runtime seems to work fine.

Attached is the diff that shows the changes that seem to make it work properly.

Hello,
Thanks, the issue was logged as #58484