Migrate compiler and others from sumBy to sumOf

This commit is contained in:
Abduqodiri Qurbonzoda
2021-04-08 03:46:14 +03:00
parent 33b44585c4
commit 19116e5623
11 changed files with 13 additions and 13 deletions
@@ -109,7 +109,7 @@ private fun ConeKotlinType.enhanceConeKotlinType(
}
private fun ConeKotlinType.subtreeSize(): Int {
return 1 + typeArguments.sumBy { ((it as? ConeKotlinType)?.subtreeSize() ?: 0) + 1 }
return 1 + typeArguments.sumOf { ((it as? ConeKotlinType)?.subtreeSize() ?: 0) + 1 }
}
private fun coneFlexibleOrSimpleType(