[FE] Support resolve of until operator to rangeUntil

^KT-52420 Fixed
This commit is contained in:
Victor Petukhov
2022-05-23 14:54:56 +02:00
committed by teamcity
parent 19136019e4
commit 0b25ce4de9
14 changed files with 136 additions and 0 deletions
@@ -0,0 +1,9 @@
class A {
operator fun rangeUntil(other: A): Iterable<A> = TODO()
}
fun main(n: A, f: A) {
for (i in f..<n) {
}
}
@@ -0,0 +1,9 @@
class A {
operator fun rangeUntil(other: A): Iterable<A> = TODO()
}
fun main(n: A, f: A) {
for (i in f..<n) {
}
}
@@ -0,0 +1,11 @@
package
public fun main(/*0*/ n: A, /*1*/ f: A): kotlin.Unit
public final class A {
public constructor A()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public final operator fun rangeUntil(/*0*/ other: A): kotlin.collections.Iterable<A>
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
@@ -0,0 +1,5 @@
fun main(n: Int) {
for (i in <!ITERATOR_MISSING!>0<!UNRESOLVED_REFERENCE!>..<<!>n<!>) {
}
}
@@ -0,0 +1,5 @@
fun main(n: Int) {
for (i in 0<!UNRESOLVED_REFERENCE!>..<<!>n) {
}
}
@@ -0,0 +1,3 @@
package
public fun main(/*0*/ n: kotlin.Int): kotlin.Unit