We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7822d19 commit 202d862Copy full SHA for 202d862
compiler/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -1450,7 +1450,7 @@ object SymDenotations {
1450
else if is(Contravariant) then Contravariant
1451
else EmptyFlags
1452
1453
- /** The length of the owner chain of this symbol. 0 for NoSymbol, 1 for _root_ */
+ /** The length of the owner chain of this symbol. 0 for _root_, undefined for NoSymbol */
1454
def nestingLevel(using Context): Int =
1455
@tailrec def recur(d: SymDenotation, n: Int): Int = d match
1456
case d: ClassDenotation => d.nestingLevel + n // profit from the cache in ClassDenotation
0 commit comments