Skip to content

Commit 202d862

Browse files
committed
Fix doc comment for nestingLevel
1 parent 7822d19 commit 202d862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ object SymDenotations {
14501450
else if is(Contravariant) then Contravariant
14511451
else EmptyFlags
14521452

1453-
/** The length of the owner chain of this symbol. 0 for NoSymbol, 1 for _root_ */
1453+
/** The length of the owner chain of this symbol. 0 for _root_, undefined for NoSymbol */
14541454
def nestingLevel(using Context): Int =
14551455
@tailrec def recur(d: SymDenotation, n: Int): Int = d match
14561456
case d: ClassDenotation => d.nestingLevel + n // profit from the cache in ClassDenotation

0 commit comments

Comments
 (0)