Navigation to implementation / overriding method: do not show method of inline class twice
#KT-28661 Fixed #KT-26924 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
aa9ce7b2e9
commit
80e1fc2ace
+1
-1
@@ -174,7 +174,7 @@ fun PsiMethod.forEachOverridingMethod(
|
||||
val ktMember = this.unwrapped as? KtNamedDeclaration ?: return true
|
||||
val ktClass = runReadAction { ktMember.containingClassOrObject as? KtClass } ?: return true
|
||||
return forEachKotlinOverride(ktClass, listOf(ktMember), scope) { _, overrider ->
|
||||
val lightMethods = runReadAction { overrider.toPossiblyFakeLightMethods() }
|
||||
val lightMethods = runReadAction { overrider.toPossiblyFakeLightMethods().distinctBy { it.unwrapped } }
|
||||
lightMethods.all { processor(it) }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user