Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render bug: opearator priority can be wrong for second argument #11662

Closed
cooldome opened this issue Jul 5, 2019 · 0 comments

Comments

@cooldome
Copy link
Member

commented Jul 5, 2019

- a / (b * b) gets rendered as -a / b * b

Test case:

proc test2(a, b: float): float =
  result = - a / (b * b)

 
import macros

macro dumpSym(a: typed) =
  echo a.getImpl.tree_repr
  echo a.getImpl.repr

dumpSym(test2)

cooldome added a commit to cooldome/Nim that referenced this issue Jul 5, 2019

@cooldome cooldome self-assigned this Jul 5, 2019

@Araq Araq closed this in d1f6c82 Jul 5, 2019

narimiran added a commit that referenced this issue Jul 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.