JVM IR: (Un)mute tests and add more tests for bridge generation

This commit is contained in:
Steven Schäfer
2020-02-03 14:24:47 +01:00
committed by Georgy Bronnikov
parent 12e31a1760
commit 5f6af58aeb
30 changed files with 353 additions and 9 deletions
@@ -0,0 +1,19 @@
interface A<T> {
fun f(x: T): T
}
open class B {
open fun f(x: String): String = x
}
open class C : B(), A<String>
class D : C()
fun box(): String {
return (D() as A<String>).f("OK")
}
// class D should not have an additional bridge
// 1 public synthetic bridge f\(Ljava/lang/Object;\)Ljava/lang/Object;
// 1 bridge