File tree Expand file tree Collapse file tree
kmmresult/src/commonMain/kotlin/at/asitplus Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ import kotlin.contracts.InvocationKind
1111import kotlin.contracts.contract
1212import kotlin.experimental.ExperimentalObjCName
1313import kotlin.experimental.ExperimentalObjCRefinement
14+ import kotlin.jvm.JvmName
1415import kotlin.jvm.JvmStatic
16+ import kotlin.jvm.JvmSynthetic
1517import kotlin.native.HiddenFromObjC
1618import kotlin.native.ObjCName
1719
@@ -243,6 +245,13 @@ private constructor(
243245 @JvmStatic
244246 fun failure (error : Throwable ): KmmResult <Nothing > = KmmResult (error)
245247
248+ @HiddenFromObjC
249+ @JvmStatic
250+ @JvmName(" typedFailure" )
251+ @JvmSynthetic
252+ @Deprecated(" Superfluous type argument" , ReplaceWith (" failure(error)" ))
253+ fun <T > failure (error : Throwable ): KmmResult <T > = failure(error)
254+
246255 /* *
247256 * Returns a [KmmResult] equivalent of this Result
248257 */
You can’t perform that action at this time.
0 commit comments