Test with SAM adapter for method inherited/overriding other from Kotlin.
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public open class Sub : test.Super {
|
||||||
|
public constructor Sub()
|
||||||
|
internal final override /*1*/ /*fake_override*/ fun foo(/*0*/ r: java.lang.Runnable): jet.Unit
|
||||||
|
}
|
||||||
|
|
||||||
|
public final class Super {
|
||||||
|
public constructor Super()
|
||||||
|
internal final fun foo(/*0*/ r: java.lang.Runnable): jet.Unit
|
||||||
|
}
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
public class Sub extends Super {
|
||||||
|
}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class Super {
|
||||||
|
fun foo(r: Runnable)
|
||||||
|
}
|
||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public open class Sub : test.Super {
|
||||||
|
public constructor Sub()
|
||||||
|
public open /*synthesized*/ fun foo(/*0*/ r: () -> jet.Unit): jet.Unit
|
||||||
|
public open override /*1*/ fun foo(/*0*/ r: java.lang.Runnable): jet.Unit
|
||||||
|
}
|
||||||
|
|
||||||
|
public final class Super {
|
||||||
|
public constructor Super()
|
||||||
|
internal final fun foo(/*0*/ r: java.lang.Runnable): jet.Unit
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
public class Sub extends Super {
|
||||||
|
public void foo(Runnable r) {
|
||||||
|
}
|
||||||
|
}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public class Super {
|
||||||
|
fun foo(r: Runnable)
|
||||||
|
}
|
||||||
@@ -1432,6 +1432,16 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
|||||||
doTestJavaAgainstKotlin("compiler/testData/loadJava/javaAgainstKotlin/samAdapters/OverrideSamAdapterInKotlin.txt");
|
doTestJavaAgainstKotlin("compiler/testData/loadJava/javaAgainstKotlin/samAdapters/OverrideSamAdapterInKotlin.txt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("SamAdapterForInheritedFromKotlin.txt")
|
||||||
|
public void testSamAdapterForInheritedFromKotlin() throws Exception {
|
||||||
|
doTestJavaAgainstKotlin("compiler/testData/loadJava/javaAgainstKotlin/samAdapters/SamAdapterForInheritedFromKotlin.txt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("SamAdapterForOverriddenFromKotlin.txt")
|
||||||
|
public void testSamAdapterForOverriddenFromKotlin() throws Exception {
|
||||||
|
doTestJavaAgainstKotlin("compiler/testData/loadJava/javaAgainstKotlin/samAdapters/SamAdapterForOverriddenFromKotlin.txt");
|
||||||
|
}
|
||||||
|
|
||||||
public static Test innerSuite() {
|
public static Test innerSuite() {
|
||||||
TestSuite suite = new TestSuite("SamAdapters");
|
TestSuite suite = new TestSuite("SamAdapters");
|
||||||
suite.addTestSuite(SamAdapters.class);
|
suite.addTestSuite(SamAdapters.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user