[JS IR BE] BridgeConstruction: Fix init order of receivers and type parameters

This commit is contained in:
Svyatoslav Kuzmich
2019-05-09 17:25:12 +03:00
parent 14259ca9e0
commit 0f90aa5f80
7 changed files with 40 additions and 2 deletions
@@ -0,0 +1,14 @@
interface A<T1> {
fun <T2> T2.foo(x: T1): String
}
class Z : A<String> {
override fun <T2> T2.foo(x: String) = this.toString() + x
}
fun A<String>.result() = "O".foo("K")
fun box(): String {
val a: A<String> = Z()
return a.result()
}