Dart specification should list conditional operator as right-associative in summary table #7377
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
The summary table in the appendix of the Dart specification lists the operators and their precedence. The conditional operator is listed with associativity: none, while it really is right associative, according to the grammar. This applies to the example
a ? b : c ? d : e, which is parsed as
a ? b : (c ? d : e), not as
(a ? b : c) ? d : e.
The text was updated successfully, but these errors were encountered: