Files
kotlin-fork/compiler/testData/diagnostics/tests/operatorsOverloading/until/customDisabled.kt
T
Ilya Chernikov bb996c1b27 Switch kotlin version to 1.8
with appropriate fixes in testdata, tests and other
places.
2022-06-29 10:20:30 +02:00

12 lines
315 B
Kotlin
Vendored

// !LANGUAGE: -RangeUntilOperator
class A {
<!UNSUPPORTED_FEATURE("The feature "range until operator" is disabled")!>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 disabled")!>..<<!>n) {
}
}