Implement members: implement functions in the same order as within Java interface

#KT-31760 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-04-17 15:49:57 +09:00
committed by Yan Zhulanow
parent 741ebeb7b8
commit 098469eb85
6 changed files with 55 additions and 1 deletions
@@ -75,7 +75,7 @@ class LazyJavaClassMemberScope(
override fun computeMemberIndex() = ClassDeclaredMemberIndex(jClass) { !it.isStatic }
override fun computeFunctionNames(kindFilter: DescriptorKindFilter, nameFilter: ((Name) -> Boolean)?) =
ownerDescriptor.typeConstructor.supertypes.flatMapTo(hashSetOf()) {
ownerDescriptor.typeConstructor.supertypes.flatMapTo(linkedSetOf()) {
it.memberScope.getFunctionNames()
}.apply {
addAll(declaredMemberIndex().getMethodNames())