Added test with inherited SAM adapter.
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
public interface InheritedOverridden {
|
||||||
|
public class Super {
|
||||||
|
public void foo(Runnable r) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Sub extends Super {
|
||||||
|
public void foo(Runnable r) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public trait InheritedOverridden : java.lang.Object {
|
||||||
|
|
||||||
|
public open class Sub : test.InheritedOverridden.Super {
|
||||||
|
public constructor Sub()
|
||||||
|
public open override /*1*/ /*synthesized*/ fun foo(/*0*/ p0: (() -> jet.Unit)?): jet.Unit
|
||||||
|
public open override /*1*/ fun foo(/*0*/ p0: java.lang.Runnable?): jet.Unit
|
||||||
|
}
|
||||||
|
|
||||||
|
public open class Super : java.lang.Object {
|
||||||
|
public constructor Super()
|
||||||
|
public open /*synthesized*/ fun foo(/*0*/ p0: (() -> jet.Unit)?): jet.Unit
|
||||||
|
public open fun foo(/*0*/ p0: java.lang.Runnable?): jet.Unit
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1264,6 +1264,11 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
|||||||
doTestCompiledJava("compiler/testData/loadJava/compiledJava/singleAbstractMethod/adapter/DeepSamLoop.java");
|
doTestCompiledJava("compiler/testData/loadJava/compiledJava/singleAbstractMethod/adapter/DeepSamLoop.java");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("InheritedOverridden.java")
|
||||||
|
public void testInheritedOverridden() throws Exception {
|
||||||
|
doTestCompiledJava("compiler/testData/loadJava/compiledJava/singleAbstractMethod/adapter/InheritedOverridden.java");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("InheritedSimple.java")
|
@TestMetadata("InheritedSimple.java")
|
||||||
public void testInheritedSimple() throws Exception {
|
public void testInheritedSimple() throws Exception {
|
||||||
doTestCompiledJava("compiler/testData/loadJava/compiledJava/singleAbstractMethod/adapter/InheritedSimple.java");
|
doTestCompiledJava("compiler/testData/loadJava/compiledJava/singleAbstractMethod/adapter/InheritedSimple.java");
|
||||||
|
|||||||
Reference in New Issue
Block a user