FIR: Fix special members came from superclass
class JavaSuperClass {
// members impls with special signature, but it doesn't override any Kotlin specials
}
class KotlinInterface {
// special members
}
class JavaSubClass extends JavaSuperClass implements KotlinInterface {
// we should obtain members from JavaSuperClass with their Kotlinish
// signature, not the Java one
}
This commit is contained in:
+3
-1
@@ -378,7 +378,9 @@ class JavaClassUseSiteMemberScope(
|
||||
// regular rules
|
||||
when (explicitlyDeclaredFunctionWithNaturalName) {
|
||||
null -> {
|
||||
destination += resultOfIntersectionWithNaturalName.chosenSymbol
|
||||
val chosenSymbol = resultOfIntersectionWithNaturalName.chosenSymbol
|
||||
if (!chosenSymbol.isVisibleInCurrentClass()) continue
|
||||
destination += chosenSymbol
|
||||
resultsOfIntersectionToSaveInCache += resultOfIntersectionWithNaturalName
|
||||
}
|
||||
else -> {
|
||||
|
||||
Reference in New Issue
Block a user