DelegationSpecifier resolve depends on expected type (supertype)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user