Skip to content

Commit 7175bfb

Browse files
committed
update docs
1 parent 8d331ee commit 7175bfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/NamerOps.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ object NamerOps:
7676
/** The flags of an `apply` method that serves as a constructor proxy */
7777
val ApplyProxyFlags = Synthetic | ConstructorProxy | Inline | Method
7878

79-
/** Does symbol `cls` need constructor proxies to be generated? */
79+
/** Does symbol `sym` need constructor proxies to be generated? */
8080
def needsConstructorProxies(sym: Symbol)(using Context): Boolean =
8181
sym.isClass
8282
&& !sym.flagsUNSAFE.isOneOf(NoConstructorProxyNeededFlags)
@@ -136,7 +136,7 @@ object NamerOps:
136136

137137
/** Add all necesssary constructor proxy symbols for members of class `cls`. This means:
138138
*
139-
* - if a member is a class that needs a constructor companion, add one,
139+
* - if a member is a class, or type alias, that needs a constructor companion, add one,
140140
* provided no member with the same name exists.
141141
* - if `cls` is a companion object of a class that needs a constructor companion,
142142
* and `cls` does not already define or inherit an `apply` method,

0 commit comments

Comments
 (0)