Support closures in codegen for callable references

This commit is contained in:
Alexander Udalov
2013-12-19 17:59:08 +04:00
parent 596b1622a3
commit d3a811aa7e
8 changed files with 95 additions and 16 deletions
@@ -737,11 +737,21 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("compiler/testData/codegen/box/callableReference/local"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("captureOuter.kt")
public void testCaptureOuter() throws Exception {
doTest("compiler/testData/codegen/box/callableReference/local/captureOuter.kt");
}
@TestMetadata("classMember.kt")
public void testClassMember() throws Exception {
doTest("compiler/testData/codegen/box/callableReference/local/classMember.kt");
}
@TestMetadata("closureWithSideEffect.kt")
public void testClosureWithSideEffect() throws Exception {
doTest("compiler/testData/codegen/box/callableReference/local/closureWithSideEffect.kt");
}
@TestMetadata("constructor.kt")
public void testConstructor() throws Exception {
doTest("compiler/testData/codegen/box/callableReference/local/constructor.kt");
@@ -762,16 +772,31 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/callableReference/local/genericMember.kt");
}
@TestMetadata("localClassMember.kt")
public void testLocalClassMember() throws Exception {
doTest("compiler/testData/codegen/box/callableReference/local/localClassMember.kt");
}
@TestMetadata("localLocal.kt")
public void testLocalLocal() throws Exception {
doTest("compiler/testData/codegen/box/callableReference/local/localLocal.kt");
}
@TestMetadata("recursiveClosure.kt")
public void testRecursiveClosure() throws Exception {
doTest("compiler/testData/codegen/box/callableReference/local/recursiveClosure.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
doTest("compiler/testData/codegen/box/callableReference/local/simple.kt");
}
@TestMetadata("simpleClosure.kt")
public void testSimpleClosure() throws Exception {
doTest("compiler/testData/codegen/box/callableReference/local/simpleClosure.kt");
}
@TestMetadata("simpleWithArg.kt")
public void testSimpleWithArg() throws Exception {
doTest("compiler/testData/codegen/box/callableReference/local/simpleWithArg.kt");