File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
compiler/src/dotty/tools/dotc/interactive Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -379,16 +379,16 @@ object Interactive {
379
379
*/
380
380
def localize (symbol : Symbol , sourceDriver : InteractiveDriver , targetDriver : InteractiveDriver ): Symbol = {
381
381
382
- def in [T ](driver : InteractiveDriver )(fn : Context => T ): T =
383
- fn( driver.currentCtx)
382
+ def in [T ](driver : InteractiveDriver )(fn : given Context => T ): T =
383
+ fn given driver .currentCtx
384
384
385
385
if (sourceDriver == targetDriver) symbol
386
386
else {
387
- val owners = in(sourceDriver) { implicit ctx =>
387
+ val owners = in(sourceDriver) {
388
388
symbol.ownersIterator.toList.reverse.map(_.name)
389
389
}
390
- in(targetDriver) { implicit ctx =>
391
- val base : Symbol = ctx.definitions .RootClass
390
+ in(targetDriver) {
391
+ val base : Symbol = defn .RootClass
392
392
owners.tail.foldLeft(base) { (prefix, symbolName) =>
393
393
if (prefix.exists) prefix.info.member(symbolName).symbol
394
394
else NoSymbol
You can’t perform that action at this time.
0 commit comments