Skip to content

Commit 25b7a16

Browse files
committed
Update comments on ParamForwarding and SuperAccessors.
1 parent a18b3fa commit 25b7a16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dotty/tools/dotc/transform/ParamForwarding.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Contexts._, Types._, Symbols._, Flags._, TypeUtils._, DenotTransformers._
1111
*
1212
* if
1313
* (1) x is forwarded in the supercall to a parameter that's also named `x`
14-
* (2) the superclass parameter accessor for `x` is accessible from the current class to
14+
* (2) the superclass parameter accessor for `x` is accessible from the current class
1515
* change the accessor to
1616
*
1717
* def x: T = super.x.asInstanceOf[T]

src/dotty/tools/dotc/transform/SuperAccessors.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class SuperAccessors(thisTransformer: DenotTransformer) {
4848
* of adding accessors. For instance, super calls from these regions
4949
* always have to go through an accessor.
5050
*
51-
* The `invalidOwner` field, if different from NoSymbol,
51+
* The `invalidEnclClass` field, if different from NoSymbol,
5252
* contains the symbol that is not a valid owner.
5353
*/
5454
private var invalidEnclClass: Symbol = NoSymbol

0 commit comments

Comments
 (0)