Skip to content

String concatenation expression results in incorrect output #82

Description

@drosenbauer

Expression e = token.equals("\u0001") ? list.get(index++) : new StringConstantExpression(token);

I believe the bug is on this line. You've already consumed the parameter at index 0 up on line 70, but then you do list.get(index++). I believe this ought to be list.get(++index).

This results in incorrect output. A string-concat expression that ought to be a + ":" + b comes out as a + ":" + a.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions