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.
2 parents 298ff3f + f8273c8 commit e09175eCopy full SHA for e09175e
compiler/src/dotty/tools/dotc/core/Scopes.scala
@@ -467,7 +467,7 @@ object Scopes {
467
override def size: Int = 0
468
override def nestingLevel: Int = 0
469
override def toList(using Context): List[Symbol] = Nil
470
- override def cloneScope(using Context): MutableScope = unsupported("cloneScope")
+ override def cloneScope(using Context): MutableScope = newScope(nestingLevel)
471
override def lookupEntry(name: Name)(using Context): ScopeEntry | Null = null
472
override def lookupNextEntry(entry: ScopeEntry)(using Context): ScopeEntry | Null = null
473
}
0 commit comments