Supported functional interfaces with generic parameters in codegen.

This commit is contained in:
Evgeny Gerashchenko
2013-03-18 21:01:27 +04:00
parent 3b558d575c
commit 91282b992d
5 changed files with 45 additions and 21 deletions
@@ -41,7 +41,7 @@ import static org.jetbrains.jet.codegen.CodegenTestUtil.compileJava;
public abstract class AbstractBlackBoxCodegenTest extends CodegenTestCase {
public void doTest(@NotNull String filename) {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_AND_ANNOTATIONS);
blackBoxFileByFullPath(filename);
}
@@ -3159,6 +3159,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/box/sam"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("comparator.kt")
public void testComparator() throws Exception {
doTest("compiler/testData/codegen/box/sam/comparator.kt");
}
@TestMetadata("filenameFilter.kt")
public void testFilenameFilter() throws Exception {
doTest("compiler/testData/codegen/box/sam/filenameFilter.kt");