Rebase fixes
This commit is contained in:
committed by
Dmitry Petrov
parent
406fbfdba8
commit
555f3e903e
+1
-1
@@ -93,7 +93,7 @@ class JvmSharedVariablesManager(val builtIns: KotlinBuiltIns) : SharedVariablesM
|
|||||||
fun getSubstitutedRefConstructor(valueType: KotlinType): ClassConstructorDescriptor =
|
fun getSubstitutedRefConstructor(valueType: KotlinType): ClassConstructorDescriptor =
|
||||||
genericRefConstructor.substitute(TypeSubstitutor.create(
|
genericRefConstructor.substitute(TypeSubstitutor.create(
|
||||||
mapOf(constructorTypeParameter.typeConstructor to TypeProjectionImpl(Variance.INVARIANT, valueType))
|
mapOf(constructorTypeParameter.typeConstructor to TypeProjectionImpl(Variance.INVARIANT, valueType))
|
||||||
))
|
))!!
|
||||||
|
|
||||||
val genericElementField: PropertyDescriptor =
|
val genericElementField: PropertyDescriptor =
|
||||||
PropertyDescriptorImpl.create(
|
PropertyDescriptorImpl.create(
|
||||||
|
|||||||
+2
-2
@@ -64,7 +64,7 @@ class EnumClassLowering(val context: JvmBackendContext) : ClassLoweringPass {
|
|||||||
private fun createArrayOfExpression(arrayElementType: KotlinType, arrayElements: List<IrExpression>): IrExpression {
|
private fun createArrayOfExpression(arrayElementType: KotlinType, arrayElements: List<IrExpression>): IrExpression {
|
||||||
val typeParameter0 = unsubstitutedArrayOfFun.typeParameters[0]
|
val typeParameter0 = unsubstitutedArrayOfFun.typeParameters[0]
|
||||||
val typeSubstitutor = TypeSubstitutor.create(mapOf(typeParameter0.typeConstructor to TypeProjectionImpl(arrayElementType)))
|
val typeSubstitutor = TypeSubstitutor.create(mapOf(typeParameter0.typeConstructor to TypeProjectionImpl(arrayElementType)))
|
||||||
val substitutedArrayOfFun = unsubstitutedArrayOfFun.substitute(typeSubstitutor)
|
val substitutedArrayOfFun = unsubstitutedArrayOfFun.substitute(typeSubstitutor)!!
|
||||||
|
|
||||||
val typeArguments = mapOf(typeParameter0 to arrayElementType)
|
val typeArguments = mapOf(typeParameter0 to arrayElementType)
|
||||||
|
|
||||||
@@ -448,7 +448,7 @@ class EnumClassLowering(val context: JvmBackendContext) : ClassLoweringPass {
|
|||||||
val typeParameterT = unsubstitutedValueOf.typeParameters[0]
|
val typeParameterT = unsubstitutedValueOf.typeParameters[0]
|
||||||
val enumClassType = irClass.descriptor.defaultType
|
val enumClassType = irClass.descriptor.defaultType
|
||||||
val typeSubstitutor = TypeSubstitutor.create(mapOf(typeParameterT.typeConstructor to TypeProjectionImpl(enumClassType)))
|
val typeSubstitutor = TypeSubstitutor.create(mapOf(typeParameterT.typeConstructor to TypeProjectionImpl(enumClassType)))
|
||||||
val substitutedValueOf = unsubstitutedValueOf.substitute(typeSubstitutor)
|
val substitutedValueOf = unsubstitutedValueOf.substitute(typeSubstitutor)!!
|
||||||
|
|
||||||
val irValueOfCall = IrCallImpl(UNDEFINED_OFFSET, UNDEFINED_OFFSET, substitutedValueOf, mapOf(typeParameterT to enumClassType))
|
val irValueOfCall = IrCallImpl(UNDEFINED_OFFSET, UNDEFINED_OFFSET, substitutedValueOf, mapOf(typeParameterT to enumClassType))
|
||||||
irValueOfCall.putValueArgument(
|
irValueOfCall.putValueArgument(
|
||||||
|
|||||||
Reference in New Issue
Block a user