Fix a bug which caused incorrectly generated js when you call extension literal from extension function.

This commit is contained in:
pTalanov
2012-05-05 15:39:53 +04:00
parent 80aee299ba
commit 68680f702b
3 changed files with 35 additions and 12 deletions
@@ -27,7 +27,6 @@ import org.mozilla.javascript.JavaScriptException;
*/
public final class MiscTest extends AbstractExpressionTest {
public MiscTest() {
super("misc/");
}
@@ -122,4 +121,8 @@ public final class MiscTest extends AbstractExpressionTest {
public void testElvis() throws Exception {
checkFooBoxIsTrue("elvis.kt");
}
public void testExtensionLiteralCalledInsideExtensionFunction() throws Exception {
checkFooBoxIsTrue("extensionLiteralCalledInsideExtensionFunction.kt");
}
}