File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -366,16 +366,11 @@ class Inliner(call: tpd.Tree, rhs: tpd.Tree)(implicit ctx: Context) {
366
366
case tpe : ThisType
367
367
if ! ctx.owner.isContainedIn(tpe.cls) && ! tpe.cls.is(Package ) &&
368
368
! thisProxy.contains(tpe.cls) =>
369
- if (tpe.cls.isStaticOwner) {
370
- val proxyName = s " ${tpe.cls.name}_module " .toTermName
371
- val proxyType = tpe.cls.sourceModule.termRef
372
- thisProxy(tpe.cls) = newSym(proxyName, EmptyFlags , proxyType).termRef
373
- } else {
374
- val proxyName = s " ${tpe.cls.name}_this " .toTermName
375
- val proxyType = tpe.asSeenFrom(prefix.tpe, meth.owner)
376
- thisProxy(tpe.cls) = newSym(proxyName, EmptyFlags , proxyType).termRef
369
+ val proxyName = s " ${tpe.cls.name}_this " .toTermName
370
+ val proxyType = tpe.asSeenFrom(prefix.tpe, meth.owner)
371
+ thisProxy(tpe.cls) = newSym(proxyName, EmptyFlags , proxyType).termRef
372
+ if (! tpe.cls.isStaticOwner)
377
373
registerType(meth.owner.thisType) // make sure we have a base from which to outer-select
378
- }
379
374
case tpe : NamedType
380
375
if tpe.symbol.is(Param ) && tpe.symbol.owner == meth &&
381
376
! paramProxy.contains(tpe) =>
You can’t perform that action at this time.
0 commit comments