Convert some old warning deprecations to errors
This commit is contained in:
committed by
SvyatoslavScherbina
parent
cfca81cc9d
commit
b550d3186a
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
package kotlinx.cinterop
|
package kotlinx.cinterop
|
||||||
|
|
||||||
@Deprecated("Use StableRef<T> instead", ReplaceWith("StableRef<T>"))
|
@Deprecated("Use StableRef<T> instead", ReplaceWith("StableRef<T>"), DeprecationLevel.ERROR)
|
||||||
typealias StableObjPtr = StableRef<*>
|
typealias StableObjPtr = StableRef<*>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -43,10 +43,11 @@ public inline class StableRef<out T : Any> @PublishedApi internal constructor(
|
|||||||
*
|
*
|
||||||
* @param value must be a [value] of some [StableRef]
|
* @param value must be a [value] of some [StableRef]
|
||||||
*/
|
*/
|
||||||
@Deprecated("Use CPointer<*>.asStableRef<T>() instead", ReplaceWith("ptr.asStableRef<T>()"))
|
@Deprecated("Use CPointer<*>.asStableRef<T>() instead", ReplaceWith("ptr.asStableRef<T>()"),
|
||||||
|
DeprecationLevel.ERROR)
|
||||||
fun fromValue(value: COpaquePointer) = value.asStableRef<Any>()
|
fun fromValue(value: COpaquePointer) = value.asStableRef<Any>()
|
||||||
}
|
}
|
||||||
@Deprecated("Use .asCPointer() instead", ReplaceWith("this.asCPointer()"))
|
@Deprecated("Use .asCPointer() instead", ReplaceWith("this.asCPointer()"), DeprecationLevel.ERROR)
|
||||||
val value: COpaquePointer get() = this.asCPointer()
|
val value: COpaquePointer get() = this.asCPointer()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user