Evaluate range classes in interpreter if constructor's body is missing

This commit is contained in:
Ivan Kylchik
2021-08-12 17:02:20 +03:00
committed by Space
parent ae9914afe0
commit a1b45755f1
5 changed files with 18 additions and 8 deletions
+2 -2
View File
@@ -36,10 +36,10 @@ public inline fun CharSequence.isEmpty(): Boolean = length == 0
public inline fun CharSequence.isNotEmpty(): Boolean = length > 0
public operator fun CharSequence.iterator(): CharIterator = object : CharIterator() {
public operator fun CharSequence.iterator(): Iterator<Char> = object : Iterator<Char> {
private var index = 0
public override fun nextChar(): Char = get(index++)
public override fun next(): Char = get(index++)
public override fun hasNext(): Boolean = index < length
}