[FIR] During resolve, set correctly property reference type in delegate
This commit is contained in:
+42
@@ -87,3 +87,45 @@ class FirImplicitKPropertyTypeRef(
|
||||
source: FirSourceElement?,
|
||||
typeArgument: ConeTypeProjection
|
||||
) : FirImplicitBuiltinTypeRef(source, StandardClassIds.KProperty, arrayOf(typeArgument))
|
||||
|
||||
class FirImplicitKProperty0TypeRef(
|
||||
source: FirSourceElement?,
|
||||
propertyTypeArgument: ConeTypeProjection
|
||||
) : FirImplicitBuiltinTypeRef(source, StandardClassIds.KProperty0, arrayOf(propertyTypeArgument))
|
||||
|
||||
class FirImplicitKMutableProperty0TypeRef(
|
||||
source: FirSourceElement?,
|
||||
propertyTypeArgument: ConeTypeProjection
|
||||
) : FirImplicitBuiltinTypeRef(source, StandardClassIds.KMutableProperty0, arrayOf(propertyTypeArgument))
|
||||
|
||||
class FirImplicitKProperty1TypeRef(
|
||||
source: FirSourceElement?,
|
||||
receiverTypeArgument: ConeTypeProjection,
|
||||
propertyTypeArgument: ConeTypeProjection
|
||||
) : FirImplicitBuiltinTypeRef(source, StandardClassIds.KProperty1, arrayOf(receiverTypeArgument, propertyTypeArgument))
|
||||
|
||||
class FirImplicitKMutableProperty1TypeRef(
|
||||
source: FirSourceElement?,
|
||||
receiverTypeArgument: ConeTypeProjection,
|
||||
propertyTypeArgument: ConeTypeProjection
|
||||
) : FirImplicitBuiltinTypeRef(source, StandardClassIds.KMutableProperty1, arrayOf(receiverTypeArgument, propertyTypeArgument))
|
||||
|
||||
class FirImplicitKProperty2TypeRef(
|
||||
source: FirSourceElement?,
|
||||
dispatchReceiverTypeArgument: ConeTypeProjection,
|
||||
extensionReceiverTypeArgument: ConeTypeProjection,
|
||||
propertyTypeArgument: ConeTypeProjection
|
||||
) : FirImplicitBuiltinTypeRef(
|
||||
source, StandardClassIds.KProperty2,
|
||||
arrayOf(dispatchReceiverTypeArgument, extensionReceiverTypeArgument, propertyTypeArgument)
|
||||
)
|
||||
|
||||
class FirImplicitKMutableProperty2TypeRef(
|
||||
source: FirSourceElement?,
|
||||
dispatchReceiverTypeArgument: ConeTypeProjection,
|
||||
extensionReceiverTypeArgument: ConeTypeProjection,
|
||||
propertyTypeArgument: ConeTypeProjection
|
||||
) : FirImplicitBuiltinTypeRef(
|
||||
source, StandardClassIds.KMutableProperty2,
|
||||
arrayOf(dispatchReceiverTypeArgument, extensionReceiverTypeArgument, propertyTypeArgument)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user