File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform/init Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1141,7 +1141,7 @@ object Semantic:
11411141 val obj = warm.objekt
11421142 val outer = obj.outer(klass)
11431143 val ctor = klass.primaryConstructor
1144- val hotSegmentCountered = ! ctor.hasSource || outer.isHot && {
1144+ val isHotSegment = outer.isHot && {
11451145 val ctorDef = ctor.defTree.asInstanceOf [DefDef ]
11461146 val params = ctorDef.termParamss.flatten.map(_.symbol)
11471147 // We have cached all parameters on the object
@@ -1151,7 +1151,7 @@ object Semantic:
11511151 // If the outer and parameters of a class are all hot, then accessing fields and methods of the current
11521152 // segment of the object should be OK. They may only create problems via virtual method calls on `this`, but
11531153 // those methods are checked as part of the check for the class where they are defined.
1154- if ! hotSegmentCountered then
1154+ if ! isHotSegment then
11551155 for member <- klass.info.decls do
11561156 if ! member.isType && ! member.isConstructor && member.hasSource && ! member.is(Flags .Deferred ) then
11571157 if member.is(Flags .Method , butNot = Flags .Accessor ) then
You can’t perform that action at this time.
0 commit comments