sweet-js / sweet-core

Sweeten your JavaScript.
https://www.sweetjs.org
BSD 2-Clause "Simplified" License
4.58k stars 208 forks source link

Wrong precedence for operator #756

Open matiasmorant opened 5 years ago

matiasmorant commented 5 years ago

a && b ? c : d compiles to a && (b ? c : d). Same problem for || operator

wjlewis commented 5 years ago

I can't seem to replicate this. Does it compile incorrectly here: https://www.sweetjs.org/browser/editor.html ?