diff --git a/Interop/Runtime/src/main/kotlin/kotlinx/cinterop/StableRef.kt b/Interop/Runtime/src/main/kotlin/kotlinx/cinterop/StableRef.kt index 45c9989ba77..060aa818c66 100644 --- a/Interop/Runtime/src/main/kotlin/kotlinx/cinterop/StableRef.kt +++ b/Interop/Runtime/src/main/kotlin/kotlinx/cinterop/StableRef.kt @@ -16,7 +16,7 @@ package kotlinx.cinterop -@Deprecated("Use StableRef instead", ReplaceWith("StableRef")) +@Deprecated("Use StableRef instead", ReplaceWith("StableRef"), DeprecationLevel.ERROR) typealias StableObjPtr = StableRef<*> /** @@ -43,10 +43,11 @@ public inline class StableRef @PublishedApi internal constructor( * * @param value must be a [value] of some [StableRef] */ - @Deprecated("Use CPointer<*>.asStableRef() instead", ReplaceWith("ptr.asStableRef()")) + @Deprecated("Use CPointer<*>.asStableRef() instead", ReplaceWith("ptr.asStableRef()"), + DeprecationLevel.ERROR) fun fromValue(value: COpaquePointer) = value.asStableRef() } - @Deprecated("Use .asCPointer() instead", ReplaceWith("this.asCPointer()")) + @Deprecated("Use .asCPointer() instead", ReplaceWith("this.asCPointer()"), DeprecationLevel.ERROR) val value: COpaquePointer get() = this.asCPointer() /**