diff --git a/compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/serializationUtil.kt b/compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/serializationUtil.kt index 804f88dab51..f88099dd321 100644 --- a/compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/serializationUtil.kt +++ b/compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/serializationUtil.kt @@ -41,7 +41,7 @@ fun ConeKotlinType.suspendFunctionTypeToFunctionTypeWithContinuation(session: Fi typeArguments = (typeArguments.dropLast(1) + continuationClassId.toLookupTag().constructClassType( arrayOf(lastTypeArgument), isNullable = false - ) + lastTypeArgument).toTypedArray(), + ) + session.builtinTypes.nullableAnyType.type).toTypedArray(), isNullable = fullyExpandedType.isNullable, attributes = fullyExpandedType.attributes ) @@ -49,4 +49,4 @@ fun ConeKotlinType.suspendFunctionTypeToFunctionTypeWithContinuation(session: Fi fun FirMemberDeclaration.shouldBeSerialized(actualizedExpectDeclaration: Set?): Boolean { return !isExpect || actualizedExpectDeclaration == null || this !in actualizedExpectDeclaration -} \ No newline at end of file +}