DelegationSpecifier resolve depends on expected type (supertype)

This commit is contained in:
Svetlana Isakova
2014-07-19 20:32:37 +04:00
parent e7c285e0e0
commit 8f6f8331ac
10 changed files with 78 additions and 46 deletions
@@ -0,0 +1,12 @@
trait A {
fun foo() {}
}
open class B(a: A) : A by a
class C(a: A): B(a), A {
}
fun b(c: C) {
c.foo();
}