KT-2566 fix - accessors naming

This commit is contained in:
Alex Tkachman
2012-08-02 19:07:55 +03:00
parent 6062e0e03d
commit d6e614a2d4
4 changed files with 54 additions and 35 deletions
@@ -0,0 +1,15 @@
open class A {
open fun foo() = "OK"
}
open class B : A() {
override fun foo() = super.foo()
}
trait I
class C : I, B() {
override fun foo() = super<B>.foo()
}
fun box() = C().foo()
@@ -0,0 +1,17 @@
open class A {
open val foo: String = "OK"
}
open class B : A() {
class E {
val foo: String = super<A>@B.foo
}
}
class C : B() {
class D {
val foo: String = super<B>@C.foo
}
}
fun box() = C().foo