This is another example of code that works well under 2409, but does not compile under 2513. It is more curious than difficult to resolve, but it was easy to make the test case:
Synopsis: Comparing a DelphiString to a char '*' fails to compile. The compiler fails to upgrade '*' to string, as promised in the documentation. Changing '*' to "*" helps, of course.
Are you sure this worked before, with DelphiString and char? this does not seem like a regression, DelphString simply does not currently offer an operator to compare with chars (but never did).
Ok, then instead of just adding the operator, I’ll need to check with the compiler team; maybe that’s something that should happen automatically (upgrading chars to strings), and got regressed.
This works ok when you use “normal” Strings, not DelphiString, correct?
test case, so you might want to take a closer look at it. In my setup, build sometimes produces the error message as shown in the zip, but occasionally my MS VS 2019 hangs and has to be restarted. This might be related with my issues from some other post earlier today, but may also indicate a compiler problem.