diff --git a/src/trufflesom/src/trufflesom/compiler/ParserAst.java b/src/trufflesom/src/trufflesom/compiler/ParserAst.java index 13b197f3f..f9cd9590a 100644 --- a/src/trufflesom/src/trufflesom/compiler/ParserAst.java +++ b/src/trufflesom/src/trufflesom/compiler/ParserAst.java @@ -48,6 +48,7 @@ import trufflesom.primitives.Primitives; import trufflesom.vm.Globals; import trufflesom.vm.NotYetImplementedException; +import trufflesom.vm.SymbolTable; import trufflesom.vmobjects.SArray; import trufflesom.vmobjects.SClass; import trufflesom.vmobjects.SInvokable; @@ -313,7 +314,7 @@ protected ExpressionNode binaryMessage(final MethodGenerationContext mgenc, return inlined; } - if (msg.getString().equals("+") && operand instanceof IntegerLiteralNode lit) { + if (msg == SymbolTable.symPlus && operand instanceof IntegerLiteralNode lit) { if (lit.executeLong(null) == 1) { return IntIncrementNodeGen.create(receiver); }