Fix warnings related to OptIn/UseExperimental

This commit is contained in:
Alexander Udalov
2020-08-13 18:44:37 +02:00
parent 256f4449ce
commit 9b94e073af
14 changed files with 56 additions and 29 deletions
@@ -23,7 +23,7 @@ internal fun KotlinType.minValue(): Long {
}
}
@ExperimentalUnsignedTypes
@OptIn(ExperimentalUnsignedTypes::class)
internal fun KotlinType.maxValue(): Long {
return when {
KotlinBuiltIns.isByte(this) -> Byte.MAX_VALUE.toLong()
@@ -63,4 +63,4 @@ internal val ModuleDescriptor.allUnsignedLiteralTypes: Collection<KotlinType>
)
} else {
emptyList()
}
}