Fixing positionConfiguratoin ref to NoPos
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@8730 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
d59c88ebba
commit
0c14751736
|
@ -422,7 +422,7 @@ abstract class GenJVM extends SubComponent {
|
|||
val outerField = clasz.symbol.info.decl(nme.getterToLocal(nme.OUTER));
|
||||
if (outerField != NoSymbol) {
|
||||
log("Adding fake local to represent outer 'this' for closure " + clasz);
|
||||
val _this = new Local(method.symbol.newVariable(positionConfiguration.NoPos, "this$"), toTypeKind(outerField.tpe), false);
|
||||
val _this = new Local(method.symbol.newVariable(NoPos, "this$"), toTypeKind(outerField.tpe), false);
|
||||
m.locals = m.locals ::: List(_this);
|
||||
computeLocalVarsIndex(m) // since we added a new local, we need to recompute indexes
|
||||
|
||||
|
|
Loading…
Reference in New Issue