Incorrect pretty-printing of unary minus

Issue #306 new
Jesper Öqvist
created an issue

Unary minus expressions are printed without a space between the minus and the negated expression. This can cause confusion with prefix decrement and leads to the pretty-printed program having the wrong meaning, for example:

b = - - a;

is printed as

a = --b;

Comments (0)

  1. Log in to comment