wrong associations of power function (missing parentheses) #196

Open
michaljuris opened this Issue Dec 7, 2016 · 1 comment

Projects

None yet

2 participants

@michaljuris

Math.pow(x*2, 2)/2
translates to
x*2 ** 2/2
but that's wrong, correct expression should be
(x*2) ** 2/2

@michaljuris michaljuris changed the title from wrong associations of power function to wrong associations of power function (missing parentheses) Dec 7, 2016
@nene
Collaborator
nene commented Dec 7, 2016

Thanks for reporting.

My first guess was that it's related to Recast library, which has had a lot of issues with handling of parenthesis, but my first tests show that things are OK. Will have to further investigate.

@nene nene added the bug label Dec 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment