You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Formatting of tabular array initializer confused by negative numbers #400
It seems this is because JavaInputAstVisitor.expressionsAreParallel() is using Tree.Kind as a key, and negative numbers are UNARY_MINUS, not DOUBLE_LITERAL.
Presumably this would also fail if you left the ".0" off the double literals that didn't need it (as they would then become INT_LITERALs).
Activity
andrewkreid commentedon Sep 26, 2019
It seems this is because
JavaInputAstVisitor.expressionsAreParallel()is usingTree.Kindas a key, and negative numbers areUNARY_MINUS, notDOUBLE_LITERAL.Presumably this would also fail if you left the ".0" off the double literals that didn't need it (as they would then become
INT_LITERALs).Preserve tabular arguments for mixed sign numeric lists.
Preserve tabular arguments for mixed sign numeric lists.
Sync upstream changes. (#3)