FIR: always use class-based dispatch receiver type in class member helpers
This commit is contained in:
committed by
Space Team
parent
d4fc2248ff
commit
53f37a3893
@@ -13,8 +13,8 @@ import org.jetbrains.kotlin.fir.types.ConeClassLikeType
|
||||
import org.jetbrains.kotlin.fir.types.ConeIntersectionType
|
||||
import org.jetbrains.kotlin.fir.types.ConeKotlinType
|
||||
|
||||
fun FirCallableSymbol<*>.dispatchReceiverTypeOrNull(): ConeKotlinType? =
|
||||
fir.dispatchReceiverType
|
||||
fun FirCallableSymbol<*>.dispatchReceiverClassTypeOrNull(): ConeClassLikeType? =
|
||||
fir.dispatchReceiverClassTypeOrNull()
|
||||
|
||||
fun FirCallableDeclaration.dispatchReceiverClassTypeOrNull(): ConeClassLikeType? =
|
||||
if (dispatchReceiverType is ConeIntersectionType && isIntersectionOverride)
|
||||
|
||||
Reference in New Issue
Block a user