Migrate UseExperimental->OptIn in project sources
This commit is contained in:
@@ -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
@@ -1,4 +1,4 @@
|
||||
@file:UseExperimental(ExperimentalContracts::class)
|
||||
@file:OptIn(ExperimentalContracts::class)
|
||||
|
||||
import kotlin.contracts.InvocationKind
|
||||
import kotlin.contracts.contract
|
||||
|
||||
Reference in New Issue
Block a user