Default arguments lowering should not touch inline functions.

This commit is contained in:
Igor Chevdar
2017-03-27 11:26:47 +03:00
parent 69eb96ecab
commit 6381b4d831
2 changed files with 8 additions and 6 deletions
@@ -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.