Migrate UseExperimental->OptIn in project sources

This commit is contained in:
Alexander Udalov
2020-01-28 15:35:42 +01:00
parent 125b39d9be
commit 795d6ab407
164 changed files with 213 additions and 211 deletions
@@ -444,7 +444,7 @@ private fun renderAnnotation(annotation: KmAnnotation): String =
"$name = ${renderAnnotationArgument(argument)}"
}
@UseExperimental(ExperimentalUnsignedTypes::class)
@OptIn(ExperimentalUnsignedTypes::class)
private fun renderAnnotationArgument(arg: KmAnnotationArgument<*>): String =
when (arg) {
is KmAnnotationArgument.ByteValue -> arg.value.toString() + ".toByte()"
+1 -1
View File
@@ -1,4 +1,4 @@
@file:UseExperimental(ExperimentalContracts::class)
@file:OptIn(ExperimentalContracts::class)
import kotlin.contracts.InvocationKind
import kotlin.contracts.contract