From 4f2ec3533aa3e43a579c0efcc7dd2eb4f2c5222d Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Fri, 26 Oct 2018 14:33:16 +0300 Subject: [PATCH] Remove inline modifier from expect functions without lambda or reified types This gives more flexibility when providing actuals for them. --- libraries/stdlib/common/src/kotlin/TextH.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/stdlib/common/src/kotlin/TextH.kt b/libraries/stdlib/common/src/kotlin/TextH.kt index 3179b4f496c..1c18252e0eb 100644 --- a/libraries/stdlib/common/src/kotlin/TextH.kt +++ b/libraries/stdlib/common/src/kotlin/TextH.kt @@ -177,8 +177,8 @@ expect fun String.compareTo(other: String, ignoreCase: Boolean = false): Int // From stringsCode.kt -internal inline expect fun String.nativeIndexOf(ch: Char, fromIndex: Int): Int -internal inline expect fun String.nativeLastIndexOf(ch: Char, fromIndex: Int): Int +internal expect fun String.nativeIndexOf(ch: Char, fromIndex: Int): Int +internal expect fun String.nativeLastIndexOf(ch: Char, fromIndex: Int): Int expect fun CharSequence.isBlank(): Boolean /**