KT-3307 Compiler exception trying to call Java method
#KT-3307 Fixed
This commit is contained in:
@@ -16,16 +16,13 @@
|
||||
|
||||
package org.jetbrains.jet.checkers;
|
||||
|
||||
import junit.framework.Assert;
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
import java.io.File;
|
||||
import org.jetbrains.jet.JetTestUtils;
|
||||
import org.jetbrains.jet.test.InnerTestClasses;
|
||||
import org.jetbrains.jet.test.TestMetadata;
|
||||
|
||||
import org.jetbrains.jet.checkers.AbstractDiagnosticsTestWithEagerResolve;
|
||||
import java.io.File;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.jet.generators.tests.GenerateTests}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@@ -2629,6 +2626,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
||||
doTest("compiler/testData/diagnostics/tests/j+k/kt2890.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt3307.kt")
|
||||
public void testKt3307() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/j+k/kt3307.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mutableIterator.kt")
|
||||
public void testMutableIterator() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/j+k/mutableIterator.kt");
|
||||
|
||||
@@ -161,6 +161,12 @@ public final class LoadJavaCustomTest extends KotlinTestWithEnvironment {
|
||||
dir + "SubclassWithRawType.java");
|
||||
}
|
||||
|
||||
public void testMethodTypeParameterErased() throws Exception {
|
||||
String dir = PATH + "/methodTypeParameterErased/";
|
||||
doTest(dir + "MethodTypeParameterErased.txt",
|
||||
dir + "MethodTypeParameterErased.java");
|
||||
}
|
||||
|
||||
public static class SubclassingKotlinInJavaTest extends KotlinTestWithEnvironmentManagement {
|
||||
public void testSubclassingKotlinInJava() throws Exception {
|
||||
doTest(PATH + "/" + getTestName(true));
|
||||
|
||||
Reference in New Issue
Block a user