[Gradle] Change 'UnsafeNumber' RequiresOptIn.level to 'ERROR'
^KT-59859 Verification Pending ^KT-55757 Verification Pending
This commit is contained in:
committed by
Space Team
parent
54962d5ec3
commit
3f0130ecf1
@@ -14,7 +14,11 @@ package kotlinx.cinterop
|
||||
@Suppress("unused") // Is emitted by the Commonizer
|
||||
@Target(AnnotationTarget.TYPEALIAS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
|
||||
@RequiresOptIn(
|
||||
message = "The declaration is using numbers with different bit widths in least two actual platforms. " +
|
||||
"Such types shall not be used in user-defined 'expect fun' signatures",
|
||||
level = RequiresOptIn.Level.ERROR
|
||||
)
|
||||
public annotation class UnsafeNumber(val actualPlatformTypes: Array<String>)
|
||||
|
||||
/**
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
fun testCommon() {
|
||||
@OptIn(kotlinx.cinterop.UnsafeNumber::class)
|
||||
intPropertyInterop.unsafeProp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user