Skip to content

Commit a160063

Browse files
committed
Address review comments
1 parent 3d48ff3 commit a160063

File tree

5 files changed

+3
-3
lines changed

5 files changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/transform/Erasure.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ object Erasure {
379379
* on selections `e.m`, where `OT` is the type of the owner of `m` and `ET`
380380
* is the erased type of the selection's original qualifier expression.
381381
*
382-
* e.m1 -> e.m2 if `m1` is a member of a class that erases to object and `m2` is
382+
* e.m1 -> e.m2 if `m1` is a member of a class that erases to Object and `m2` is
383383
* the same-named member in Object.
384384
* e.m -> box(e).m if `e` is primitive and `m` is a member or a reference class
385385
* or `e` has an erased value class type.

compiler/src/dotty/tools/dotc/typer/PrepareInlineable.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ object PrepareInlineable {
258258
ctx.error(ex"implementation restriction: nested rewrite methods are not supported", inlined.pos)
259259
if (inlined.name == nme.unapply && tupleArgs(body).isEmpty)
260260
ctx.warning(
261-
em"rewrite unapply method can be rewritten only if its tight hand side is a tuple (e1, ..., eN)",
261+
em"rewrite unapply method can be rewritten only if its right hand side is a tuple (e1, ..., eN)",
262262
body.pos)
263263
}
264264

File renamed without changes.

tests/run/i4803d/App_2.scala renamed to tests/disabled/run/i4803d/App_2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ object Test {
1010
println(power2(x3))
1111
}
1212

13-
def power2(x: Double) = {
13+
rewrite def power2(x: Double) = {
1414
rewrite def power(x: Double, transparent n: Long) = ~PowerMacro.powerCode('(x), n)
1515
power(x, 2)
1616
}

0 commit comments

Comments
 (0)