Transform CharSequence.length to property

This commit is contained in:
Denis Zharkov
2015-10-11 17:32:31 +03:00
committed by Mikhail Glukhikh
parent 6c0d55e4ed
commit 1305d9755a
14 changed files with 83 additions and 50 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ public interface CharSequence {
/**
* Returns the length of this character sequence.
*/
public fun length(): Int
public val length: Int
/**
* Returns the character at the specified [index] in the sequence.
+1 -1
View File
@@ -28,7 +28,7 @@ public class String : Comparable<String>, CharSequence {
*/
public operator fun plus(other: Any?): String
public override fun length(): Int
public override val length: Int
public override fun get(index: Int): Char