JVM_IR KT-42137 bridges are not generated for fake overrides

This commit is contained in:
Dmitry Petrov
2020-11-20 10:51:50 +03:00
parent 5d5473ef08
commit e59c8e0a5c
14 changed files with 116 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
interface A<out T> {
val value: T
}
interface B<out T : CharSequence> : A<T>
open class C(override val value: String) : B<CharSequence>
interface X {
val value: CharSequence
}
class Y(value: String) : C(value), X
+32
View File
@@ -0,0 +1,32 @@
@kotlin.Metadata
public interface A {
// source: 'kt42137.kt'
public abstract method getValue(): java.lang.Object
}
@kotlin.Metadata
public interface B {
// source: 'kt42137.kt'
}
@kotlin.Metadata
public class C {
// source: 'kt42137.kt'
private final @org.jetbrains.annotations.NotNull field value: java.lang.String
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
public synthetic bridge method getValue(): java.lang.Object
public @org.jetbrains.annotations.NotNull method getValue(): java.lang.String
}
@kotlin.Metadata
public interface X {
// source: 'kt42137.kt'
public abstract @org.jetbrains.annotations.NotNull method getValue(): java.lang.CharSequence
}
@kotlin.Metadata
public final class Y {
// source: 'kt42137.kt'
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
public synthetic bridge method getValue(): java.lang.CharSequence
}