Generate bridges for fake overrides when needed

#KT-3985 Fixed
 #KT-4145 Fixed
This commit is contained in:
Alexander Udalov
2014-03-27 19:33:42 +04:00
parent 2c2c918447
commit 04c237cc22
17 changed files with 300 additions and 97 deletions
@@ -0,0 +1,12 @@
open class A<T>(val t: T) {
open val foo: T = t
}
open class B : A<String>("Fail")
class Z : B() {
override val foo = "OK"
}
fun box() = (Z() : A<String>).foo