We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11090f1 commit 3d58ec8Copy full SHA for 3d58ec8
compiler/src/dotty/tools/dotc/transform/ExplicitOuter.scala
@@ -247,7 +247,7 @@ object ExplicitOuter {
247
248
/** Class constructor needs an outer argument. Can be called only after phase ExplicitOuter. */
249
def needsOuterParam(cls: ClassSymbol)(using Context): Boolean =
250
- !cls.is(Trait) && needsOuterAlways(cls)
+ !cls.is(Trait) && needsOuterIfReferenced(cls)
251
252
/** Tree references an outer class of `cls` which is not a static owner.
253
*/
0 commit comments