Default arguments lowering should not touch inline functions.
This commit is contained in:
@@ -312,8 +312,10 @@ public inline fun String.subSequence(start: Int, end: Int): CharSequence = subSe
|
||||
* @param startIndex the start index (inclusive).
|
||||
* @param endIndex the end index (exclusive). If not specified, the length of the char sequence is used.
|
||||
*/
|
||||
// TODO: uncomment as soon as inlining works for stdlib.
|
||||
@Fixme
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun CharSequence.substring(startIndex: Int, endIndex: Int = length): String = subSequence(startIndex, endIndex).toString()
|
||||
public /*inline*/ fun CharSequence.substring(startIndex: Int, endIndex: Int = length): String = subSequence(startIndex, endIndex).toString()
|
||||
|
||||
/**
|
||||
* Returns a substring of chars at indices from the specified [range] of this char sequence.
|
||||
|
||||
Reference in New Issue
Block a user