We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d293d9 + 709aba8 commit b3f302eCopy full SHA for b3f302e
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -2467,7 +2467,7 @@ class Typer extends Namer
2467
/** Translate infix operation expression `l op r` to
2468
*
2469
* l.op(r) if `op` is left-associative
2470
- * { val x = l; r.op(l) } if `op` is right-associative call-by-value and `l` is impure
+ * { val x = l; r.op(x) } if `op` is right-associative call-by-value and `l` is impure
2471
* r.op(l) if `op` is right-associative call-by-name or `l` is pure
2472
2473
* Translate infix type `l op r` to `op[l, r]`
0 commit comments