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 0910304 commit acacb13Copy full SHA for acacb13
compiler/src/dotty/tools/dotc/cc/CaptureOps.scala
@@ -392,7 +392,7 @@ extension (sym: Symbol)
392
*/
393
def definedLocalRoot(using Context): Symbol =
394
sym.paramSymss.dropWhile(psyms => psyms.nonEmpty && psyms.head.isType) match
395
- case psyms :: Nil => psyms.find(_.info.typeSymbol == defn.Caps_Root).getOrElse(NoSymbol)
+ case psyms :: _ => psyms.find(_.info.typeSymbol == defn.Caps_Root).getOrElse(NoSymbol)
396
case _ => NoSymbol
397
398
def localRoot(using Context): Symbol =
0 commit comments