fix for KT=2702 - wrong bridges on super call

This commit is contained in:
Alex Tkachman
2012-08-30 15:35:37 +03:00
parent 925b2b9f99
commit 8a71cf7bf7
5 changed files with 31 additions and 6 deletions
@@ -0,0 +1,14 @@
open class A<R> {
open fun foo(r: R): R {return r}
}
open class B : A<String>() {
}
open class C : B() {
override fun foo(r: String): String {
return super.foo(r) + "K"
}
}
fun box() = C().foo("O")