[FE 1.0] Add checker to report "unsupported range until operator" on declaration itself

This commit is contained in:
Victor Petukhov
2022-05-30 14:30:21 +02:00
committed by teamcity
parent c266303197
commit f5f398788d
4 changed files with 32 additions and 2 deletions
@@ -1,5 +1,5 @@
class A {
operator fun rangeUntil(other: A): Iterable<A> = TODO()
<!UNSUPPORTED_FEATURE("The feature "range until operator" is only available since language version 1.8")!>operator<!> fun rangeUntil(other: A): Iterable<A> = TODO()
}
fun main(n: A, f: A) {
@@ -1,7 +1,7 @@
// !LANGUAGE: -RangeUntilOperator
class A {
operator fun rangeUntil(other: A): Iterable<A> = TODO()
<!UNSUPPORTED_FEATURE("The feature "range until operator" is only available since language version 1.8")!>operator<!> fun rangeUntil(other: A): Iterable<A> = TODO()
}
fun main(n: A, f: A) {