Replace deprecated usages of max/min with maxOrNull/minOrNull
This commit is contained in:
@@ -291,9 +291,9 @@ interface ClassicTypeSystemContext : TypeSystemInferenceExtensionContext, TypeSy
|
||||
require(this is SimpleType, this::errorMessage)
|
||||
if (this is TypeUtils.SpecialType) return 0
|
||||
|
||||
val maxInArguments = arguments.asSequence().map {
|
||||
val maxInArguments = arguments.maxOfOrNull {
|
||||
if (it.isStarProjection) 1 else it.type.unwrap().typeDepth()
|
||||
}.max() ?: 0
|
||||
} ?: 0
|
||||
|
||||
return maxInArguments + 1
|
||||
}
|
||||
|
||||
+1
-1
@@ -230,7 +230,7 @@ class MemberDeserializer(private val c: DeserializationContext) {
|
||||
|
||||
else -> CoroutinesCompatibilityMode.COMPATIBLE
|
||||
}
|
||||
}.max() ?: CoroutinesCompatibilityMode.COMPATIBLE
|
||||
}.maxOrNull() ?: CoroutinesCompatibilityMode.COMPATIBLE
|
||||
|
||||
return maxOf(
|
||||
if (isSuspend)
|
||||
|
||||
Reference in New Issue
Block a user