Advance Duration.toLongUnits() deprecation level to ERROR #KT-53864

This commit is contained in:
Abduqodiri Qurbonzoda
2022-09-07 22:57:12 +03:00
parent b1300332ee
commit 89b5ce1ed7
3 changed files with 6 additions and 0 deletions
@@ -919,6 +919,7 @@ public value class Duration internal constructor(private val rawValue: Long) : C
*/
@ExperimentalTime
@Deprecated("Use inWholeNanoseconds property instead.", ReplaceWith("this.inWholeNanoseconds"))
@DeprecatedSinceKotlin(warningSince = "1.5", errorSince = "1.8")
public fun toLongNanoseconds(): Long = inWholeNanoseconds
/**
@@ -930,6 +931,7 @@ public value class Duration internal constructor(private val rawValue: Long) : C
*/
@ExperimentalTime
@Deprecated("Use inWholeMilliseconds property instead.", ReplaceWith("this.inWholeMilliseconds"))
@DeprecatedSinceKotlin(warningSince = "1.5", errorSince = "1.8")
public fun toLongMilliseconds(): Long = inWholeMilliseconds
/**