Eat inner class info for function literals

This commit is contained in:
Mikhael Bogdanov
2013-12-04 15:58:24 +04:00
parent 2874cd203f
commit fb34b0aa52
@@ -197,7 +197,9 @@ public class CodegenBinding {
closure.setCaptureThis();
}
if (enclosing != null) {
//TEMPORARY EAT INNER CLASS INFO FOR FUNCTION LITERALS
//TODO: we should understand that lambda/closure would be inlined and don't generate inner class record
if (enclosing != null && !(element instanceof JetFunctionLiteral)) {
recordInnerClass(bindingTrace, enclosing, classDescriptor);
}
}