Skip to content

Commit bb9d367

Browse files
committed
Remove hostile code from explicitouter.
If that's the $outer accessor, what's that being created in newOuterAccessor? Sketchy, sketchy business.
1 parent 4f98d50 commit bb9d367

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ abstract class ExplicitOuter extends InfoTransform
158158
var decls1 = decls
159159
if (isInner(clazz) && !clazz.isInterface) {
160160
decls1 = decls.cloneScope
161-
val outerAcc = clazz.newMethod(nme.OUTER, clazz.pos) // 3
162-
outerAcc expandName clazz
163-
164161
decls1 enter newOuterAccessor(clazz)
165162
if (hasOuterField(clazz)) //2
166163
decls1 enter newOuterField(clazz)

0 commit comments

Comments
 (0)