From a005f4804e8ba9400fae9fc656c480a40e19cff1 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Fri, 3 Nov 2017 22:20:02 +0300 Subject: [PATCH] Strengthen deprecation for CharSequence.size in JS --- js/js.libraries/src/core/string.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/js.libraries/src/core/string.kt b/js/js.libraries/src/core/string.kt index eee4c3b3261..1598991b52a 100644 --- a/js/js.libraries/src/core/string.kt +++ b/js/js.libraries/src/core/string.kt @@ -35,7 +35,7 @@ public inline fun String.match(regex: String): Array? = asDynamic().matc //native public fun String.trim(): String //TODO: String.replace to implement effective trimLeading and trimTrailing -@Deprecated("Use length property instead.", ReplaceWith("length"), level = DeprecationLevel.WARNING) // TODO: ERROR in 1.2 +@Deprecated("Use length property instead.", ReplaceWith("length"), level = DeprecationLevel.ERROR) @kotlin.internal.InlineOnly public inline val CharSequence.size: Int get() = length