K2 IC: fix member lookup recording
The previous code recorded only class name, instead of fqname, as a scope of lookup. #KT-65943 fixed #KTIJ-24828 fixed related to #KT-56197
This commit is contained in:
committed by
Space Team
parent
f38dc3999c
commit
5b62558798
+2
-2
@@ -330,8 +330,8 @@ class MemberScopeTowerLevel(
|
||||
private fun Triple<FirLookupTrackerComponent?, SmartList<String>, CallInfo>.recordCallableMemberLookup(callable: FirCallableSymbol<*>) {
|
||||
first?.run {
|
||||
recordTypeResolveAsLookup(callable.fir.returnTypeRef, third.callSite.source, third.containingFile.source)
|
||||
callable.callableId.className?.let { lookupScope ->
|
||||
second.add(lookupScope.asString())
|
||||
callable.callableId.classId?.takeIf { !it.isLocal }?.let { lookupScope ->
|
||||
second.add(lookupScope.asFqNameString())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user