Skip to content

Commit d109796

Browse files
committed
Update comment on liftedOwner.
1 parent b0856fe commit d109796

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/dotty/tools/dotc/transform/LambdaLift.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class LambdaLift extends MiniPhase with IdentityDenotTransformer { thisTransform
6666
/** A map from local methods and classes to the owners to which they will be lifted as members.
6767
* For methods and classes that do not have any dependencies this will be the enclosing package.
6868
* symbols with packages as lifted owners will subsequently represented as static
69-
* members of their toplevel class.
69+
* members of their toplevel class, unless their enclosing class was already static.
7070
*/
7171
private val liftedOwner = new HashMap[Symbol, Symbol]
7272

@@ -289,7 +289,6 @@ class LambdaLift extends MiniPhase with IdentityDenotTransformer { thisTransform
289289
for ((local, lOwner) <- liftedOwner) {
290290
val (newOwner, maybeStatic) =
291291
if (lOwner is Package) {
292-
println(s"lifting $local encl class ${local.enclosingClass}")
293292
if (local.enclosingClass.isStatic) // member of a static object
294293
(local.enclosingClass, EmptyFlags)
295294
else

0 commit comments

Comments
 (0)