Supported functional interfaces with generic parameters in codegen.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user