Consider all real functions, not only declarations in bridge codegen

There should be bridges to all of the functions present in bytecode
This commit is contained in:
Alexander Udalov
2014-04-04 16:12:04 +04:00
parent 04c237cc22
commit 478766815d
7 changed files with 34 additions and 11 deletions
@@ -0,0 +1,14 @@
open data class A(val value: String)
trait B {
fun component1(): Any
}
class C(value: String) : A(value), B
fun box(): String {
val c = C("OK")
if ((c : B).component1() != "OK") return "Fail 1"
if ((c : A).component1() != "OK") return "Fail 2"
return c.component1()
}