[FE 1.0] Introduce "range until operator" language feature, and report errors on its usages till 1.8

This commit is contained in:
Victor Petukhov
2022-05-24 11:45:04 +02:00
committed by teamcity
parent de9d1dc536
commit c266303197
16 changed files with 136 additions and 2 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<!UNSUPPORTED_FEATURE("The feature "range until operator" is only available since language version 1.8")!>..<<!>n) {
}
}