JVM IR: (Un)mute tests and add more tests for bridge generation
This commit is contained in:
committed by
Georgy Bronnikov
parent
12e31a1760
commit
5f6af58aeb
@@ -0,0 +1,22 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
open class Base<T> {
|
||||
open fun f(x: T): String {
|
||||
return "Fail"
|
||||
}
|
||||
}
|
||||
|
||||
abstract class Derived : Base<String>() {
|
||||
abstract override fun f(x: String): String
|
||||
}
|
||||
|
||||
class Implementation : Derived() {
|
||||
override fun f(x: String): String {
|
||||
return x
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val base = Implementation() as Base<String>
|
||||
return base.f("OK")
|
||||
}
|
||||
Reference in New Issue
Block a user