JS backend: fix recursive closure local function by inner function or lambda.

#KT-4257 fixed
This commit is contained in:
Zalim Bashorov
2013-12-16 21:32:39 +04:00
parent 1f17b55c27
commit c77a1b0fb9
10 changed files with 291 additions and 27 deletions
@@ -51,4 +51,21 @@ public final class ClosureTest extends SingleFileTranslationTest {
public void testWrappedVariableInExtensionFun() throws Exception {
fooBoxTest();
}
public void testSimpleRecursion() throws Exception {
checkFooBoxIsOk();
}
public void testClosureFunctionByInnerFunction() throws Exception {
checkFooBoxIsOk();
}
public void testClosureLocalFunctionByInnerFunction() throws Exception {
checkFooBoxIsOk();
}
// TODO: fix
public void igonre_testClosureLocalFunctionByInnerFunctionInConstrunctor() throws Exception {
checkFooBoxIsOk();
}
}