summaryrefslogtreecommitdiff
path: root/test/files/pos/t4975.scala
Commit message (Collapse)AuthorAgeFilesLines
* Consider method-scoped companions in the implicit scope.Jason Zaugg2012-05-211-0/+12
Fixes SI-4975. I'll reproduce a relevant snippet of dialogue from Namers#companionSymbolOf: /** The companion class or companion module of `original`. * Calling .companionModule does not work for classes defined inside methods. * * !!! Then why don't we fix companionModule? Does the presence of these * methods imply all the places in the compiler calling sym.companionModule are * bugs waiting to be reported? If not, why not? When exactly do we need to * call this method? */ def companionSymbolOf(original: Symbol, ctx: Context): Symbol = { This was one such bug.