Return NONE from FirSuperTypeScope if nothing is found

This commit is contained in:
Mikhail Glukhikh
2019-12-12 17:26:35 +03:00
parent 001af68495
commit acf48a1af7
@@ -59,7 +59,7 @@ class FirSuperTypeScope private constructor(
processCallables: FirScope.(Name, (D) -> ProcessorAction) -> ProcessorAction
): ProcessorAction? {
if (name in absentNames) {
return ProcessorAction.NEXT
return ProcessorAction.NONE
}
val membersByScope = scopes.mapNotNull { scope ->
@@ -76,7 +76,7 @@ class FirSuperTypeScope private constructor(
if (membersByScope.isEmpty()) {
absentNames.add(name)
return null
return ProcessorAction.NONE
}
membersByScope.singleOrNull()?.let { members ->