Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb05421

Browse files
retronymmilessabin
authored andcommitted
refactor lookup of vsyms in by-name implicit implementations
1 parent ac35aeb commit eb05421

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/scala/tools/nsc/typechecker/Contexts.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,9 @@ trait Contexts { self: Analyzer =>
334334

335335
val mdef0 = typer.typed(mdef)
336336
val msym0 = mdef0.symbol
337+
val moduleClassInfo = mdef0.symbol.moduleClass.info
337338
val vsyms0 = vsyms.map { vsym =>
338-
mdef0.symbol.moduleClass.asClass.toType.decl(vsym.name)
339+
moduleClassInfo.decl(vsym.name)
339340
}
340341

341342
val vsymMap = (vsyms zip vsyms0).toMap

0 commit comments

Comments
 (0)