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 dff9f5e + 56d3742 commit 100d805Copy full SHA for 100d805
_overviews/scala3-macros/tutorial/inline.md
@@ -276,8 +276,8 @@ val x = 2
276
val x2 = x * x
277
x2 * {
278
if (0 == 0) 1.0
279
- else if (0 % 2 == 1) x * power(x, 0 - 1) // dead branch
280
- else power(x * x, 0 / 2) // dead branch
+ else if (0 % 2 == 1) x2 * power(x2, 0 - 1) // dead branch
+ else power(x2 * x2, 0 / 2) // dead branch
281
}
282
// partially evaluated to
283
val x = 2
0 commit comments