Skip to content

Commit 3d58ec8

Browse files
committed
fix
1 parent 11090f1 commit 3d58ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/ExplicitOuter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ object ExplicitOuter {
247247

248248
/** Class constructor needs an outer argument. Can be called only after phase ExplicitOuter. */
249249
def needsOuterParam(cls: ClassSymbol)(using Context): Boolean =
250-
!cls.is(Trait) && needsOuterAlways(cls)
250+
!cls.is(Trait) && needsOuterIfReferenced(cls)
251251

252252
/** Tree references an outer class of `cls` which is not a static owner.
253253
*/

0 commit comments

Comments
 (0)