string fix

This commit is contained in:
nub31
2025-09-12 23:13:48 +02:00
parent 7716c84dd9
commit 55f434419a
3 changed files with 6 additions and 7 deletions

View File

@@ -758,6 +758,7 @@ public class QBEGenerator
private static string EmitBinaryInstructionForOperator(BinaryOperator op, TypeNode type)
{
// todo(nub31): Add support for string concatenation. Currently this expects ints or floats and will treat strings as ints
return op switch
{
BinaryOperator.RightShift => type switch