diff --git a/core/common/src/DateTimePeriod.kt b/core/common/src/DateTimePeriod.kt index 418e364e..b54f183f 100644 --- a/core/common/src/DateTimePeriod.kt +++ b/core/common/src/DateTimePeriod.kt @@ -579,7 +579,7 @@ public fun Duration.toDateTimePeriod(): DateTimePeriod = buildDateTimePeriod(tot */ @Deprecated( "Adding periods is not a well-defined operation. See https://github.com/Kotlin/kotlinx-datetime/issues/381", - level = DeprecationLevel.ERROR + level = DeprecationLevel.WARNING ) public operator fun DateTimePeriod.plus(other: DateTimePeriod): DateTimePeriod = buildDateTimePeriod( safeAdd(totalMonths, other.totalMonths), @@ -597,7 +597,7 @@ public operator fun DateTimePeriod.plus(other: DateTimePeriod): DateTimePeriod = */ @Deprecated( "Adding periods is not a well-defined operation. See https://github.com/Kotlin/kotlinx-datetime/issues/381", - level = DeprecationLevel.ERROR + level = DeprecationLevel.WARNING ) public operator fun DatePeriod.plus(other: DatePeriod): DatePeriod = DatePeriod( safeAdd(totalMonths, other.totalMonths),