JVM_IR KT-44627 fix bridge signature for parameter with primitive bound

This commit is contained in:
Dmitry Petrov
2021-02-15 15:49:14 +03:00
parent fa0f967c83
commit b262d09a81
8 changed files with 101 additions and 9 deletions
@@ -0,0 +1,5 @@
open class ATChar<T : Char>(open var x: T)
open class BTChar<T : Char>(override var x: T) : ATChar<T>(x)
class CChar(override var x: Char) : BTChar<Char>('x')
@@ -0,0 +1,27 @@
@kotlin.Metadata
public class ATChar {
// source: 'overrideWithPrimitiveUpperBound.kt'
private field x: char
public method <init>(p0: char): void
public method getX(): char
public method setX(p0: char): void
}
@kotlin.Metadata
public class BTChar {
// source: 'overrideWithPrimitiveUpperBound.kt'
private field x: char
public method <init>(p0: char): void
public method getX(): char
public method setX(p0: char): void
}
@kotlin.Metadata
public final class CChar {
// source: 'overrideWithPrimitiveUpperBound.kt'
private field x: char
public method <init>(p0: char): void
public synthetic bridge method getX(): char
public @org.jetbrains.annotations.NotNull method getX(): java.lang.Character
public method setX(p0: char): void
}
@@ -0,0 +1,5 @@
open class ATAny<T>(open val x: T)
open class BTChar<T : Char>(override val x: T) : ATAny<T>(x)
class CChar(override val x: Char) : BTChar<Char>('x')
@@ -0,0 +1,26 @@
@kotlin.Metadata
public class ATAny {
// source: 'overrideWithPrimitiveUpperBound2.kt'
private final field x: java.lang.Object
public method <init>(p0: java.lang.Object): void
public method getX(): java.lang.Object
}
@kotlin.Metadata
public class BTChar {
// source: 'overrideWithPrimitiveUpperBound2.kt'
private final field x: char
public method <init>(p0: char): void
public method getX(): char
public synthetic bridge method getX(): java.lang.Object
}
@kotlin.Metadata
public final class CChar {
// source: 'overrideWithPrimitiveUpperBound2.kt'
private final field x: char
public method <init>(p0: char): void
public synthetic bridge method getX(): char
public @org.jetbrains.annotations.NotNull method getX(): java.lang.Character
public synthetic bridge method getX(): java.lang.Object
}