From b550d3186a6bb1677bca67762318531a7f5dd861 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Fri, 27 Mar 2020 15:20:41 +0300 Subject: [PATCH] Convert some old warning deprecations to errors --- .../Runtime/src/main/kotlin/kotlinx/cinterop/StableRef.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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() /**