Kapt: Fix supertype conversion for DefaultImpls (KT-28306)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// CORRECT_ERROR_TYPES
|
||||
|
||||
package foo
|
||||
|
||||
interface InterfaceWithDefaults<T> {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
interface SubInterface<T> : InterfaceWithDefaults<T>
|
||||
@@ -0,0 +1,42 @@
|
||||
package foo;
|
||||
|
||||
import java.lang.System;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface InterfaceWithDefaults<T extends java.lang.Object> {
|
||||
|
||||
public abstract void foo();
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class DefaultImpls {
|
||||
|
||||
public DefaultImpls() {
|
||||
super();
|
||||
}
|
||||
|
||||
public static <T extends java.lang.Object>void foo(foo.InterfaceWithDefaults<T> $this) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package foo;
|
||||
|
||||
import java.lang.System;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface SubInterface<T extends java.lang.Object> extends foo.InterfaceWithDefaults<T> {
|
||||
|
||||
@kotlin.Metadata()
|
||||
public static final class DefaultImpls {
|
||||
|
||||
public DefaultImpls() {
|
||||
super();
|
||||
}
|
||||
|
||||
@java.lang.Override()
|
||||
public static <T extends java.lang.Object>void foo(foo.SubInterface<T> $this) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user