File tree 2 files changed +6
-3
lines changed
compiler/src/dotty/tools/dotc/transform/init
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,9 @@ object Checking {
53
53
* However, summarization can be done lazily on-demand to improve
54
54
* performance.
55
55
*/
56
- def checkClassBody (cdef : TypeDef )(implicit state : State ): Unit = traceOp(" checking " + cdef.symbol.show, init) {
56
+ def checkClassBody (cdef : TypeDef )(implicit state : State ): Unit = {
57
+ traceIndented(" \n\n >>>> checking " + cdef.symbol.show, init)
58
+
57
59
val cls = cdef.symbol.asClass
58
60
val tpl = cdef.rhs.asInstanceOf [Template ]
59
61
Original file line number Diff line number Diff line change @@ -327,10 +327,11 @@ object Summarization {
327
327
def extractParentOuters (parent : Type , source : Tree ): (ClassSymbol , Potentials ) = {
328
328
val tref = parent.typeConstructor.stripAnnots.asInstanceOf [TypeRef ]
329
329
val parentCls = tref.classSymbol.asClass
330
+ val env2 : Env = env.withOwner(cls.owner.lexicallyEnclosingClass)
330
331
if (tref.prefix != NoPrefix )
331
- parentCls -> analyze(tref.prefix, source)(env.withOwner(cls) )._1
332
+ parentCls -> analyze(tref.prefix, source)(env2 )._1
332
333
else
333
- parentCls -> analyze(cls.owner.lexicallyEnclosingClass.thisType, source)(env.withOwner(cls) )._1
334
+ parentCls -> analyze(cls.owner.lexicallyEnclosingClass.thisType, source)(env2 )._1
334
335
}
335
336
336
337
if (cls.defTree.isEmpty)
You can’t perform that action at this time.
0 commit comments