Transform CharSequence.length to property
This commit is contained in:
committed by
Mikhail Glukhikh
parent
6c0d55e4ed
commit
1305d9755a
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user