Go to (show) implementations: skip light methods that are generated with DELEGATION or DELEGATION_TO_DEFAULT_IMPLS JvmDeclarationOriginKind

Add some unrelated tests for fake overrides
This commit is contained in:
Pavel V. Talanov
2015-12-21 19:37:23 +03:00
parent de6f52030c
commit 99966c17da
15 changed files with 371 additions and 32 deletions
@@ -0,0 +1,36 @@
package testing
interface I<T> {
fun <caret>f(): T {
}
}
class A<T> : I<T>
class B<T> : I<T> {
override fun f(): T {
}
}
class C<T> : I<T>
interface II<T>: I<T>
interface III<T>: I<T> {
override fun f(): T {
}
}
class A1<T>(i: I<T>) : I<T> by i
class B1<T>(i: I<T>) : I<T> by i {
override fun f(): T {
}
}
class C1<T>(i: I<T>) : I<T> by i
// REF: (in testing.B).f()
// REF: (in testing.B1).f()
// REF: (in testing.III).f()