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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user