Can anyone point me to information on how to set operator precedence in Dotty?
I was assuming that the expression r5 and r6 below would have the same result,
but they do not. It looks like r6 and r7 are equivalent.

val r5 = (5*x2) / (3*x2)
val r6 = 5*x2 / 3*x2
val r7 = (5*x2 / 3)*x2

Multiplication and division have the same precedence. For r6, the division by 3 occurs, then the whole thing is multiplied by x2. For readability, I usually try to put the division last, as in

I don’t think operator precedence handling changed in dotty (at least I can’t find anything in the docs), which would mean it can not be customized. All operators use the fixed operator precedence defined by the language (which can be found here for Scala 2)

Operator precedence is not configurable. It follows a fixed set of rules defined in the language spec. And the precedence of * and / follows the regular mathematical precedence rules so not really surprising I’m afraid.