[FIR] Improve typing to get rid of cast
This commit is contained in:
committed by
Mikhail Glukhikh
parent
95409b35ca
commit
321e948eca
@@ -23,7 +23,7 @@ abstract class FirSymbolProvider {
|
||||
return when (lookupTag) {
|
||||
is ConeClassLikeLookupTag -> {
|
||||
(lookupTag as? ConeClassLikeLookupTagImpl)
|
||||
?.boundSymbol?.takeIf { it.first === this }?.let { return it.second as ConeClassifierSymbol? }
|
||||
?.boundSymbol?.takeIf { it.first === this }?.let { return it.second }
|
||||
|
||||
getClassLikeSymbolByFqName(lookupTag.classId).also {
|
||||
(lookupTag as? ConeClassLikeLookupTagImpl)
|
||||
|
||||
Reference in New Issue
Block a user