Skip to content

Commit c01413e

Browse files
committed
Fixed doc comment.
1 parent 592f2d5 commit c01413e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@ import Decorators._
1616
import ast.Trees._
1717
import TreeTransforms._
1818

19-
/** Makes private methods static, provided they not deferred, accessors, or static,
20-
* by rewriting a method `m` in class `C` as follows:
21-
*
22-
* private def m(ps) = e
23-
*
24-
* --> private static def($this: C, ps) = [this -> $this] e
19+
/** Make private term members accessed from other classes non-private
20+
* by resetting the Private flag and expanding their name.
2521
*/
2622
class ExpandPrivate extends MiniPhaseTransform with IdentityDenotTransformer { thisTransform =>
2723
import ast.tpd._

0 commit comments

Comments
 (0)