Skip to content

Commit 2c8480d

Browse files
noti0na1WojciechMazur
authored andcommitted
Add a comment for the default value of the rename function.
[Cherry-picked b23da16]
1 parent 989cf1b commit 2c8480d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ object Scopes {
159159

160160
/** The scope that keeps only those symbols from this scope that match the
161161
* given predicates, renamed with the given rename function.
162+
* If renaming is not needed for a symbol, the rename function should return `null`.
162163
* If all symbols match and none are renamed, returns the scope itself, otherwise
163164
* a copy with the matching and renamed symbols.
164165
*/

0 commit comments

Comments
 (0)