FIR: Fix interface delegation case via type alias

This commit is contained in:
Denis.Zharkov
2021-02-19 11:26:13 +03:00
parent e4c851e3ce
commit 1fe0a1f160
11 changed files with 67 additions and 5 deletions
@@ -0,0 +1,17 @@
public interface MyMap<K, V> {
fun get(k: K): V
}
typealias MyMapAlias<X, Y> = MyMap<X, Y>
abstract class A<T, E>(val m: MyMapAlias<T, E>) : MyMapAlias<T, E> by m
class B : A<String, String>(object : MyMap<String, String> {
override fun get(w: String): String {
return w + "K"
}
})
fun box(): String {
return B().get("O")
}