[FE 1.0] Add checker to report "unsupported range until operator" on declaration itself
This commit is contained in:
committed by
teamcity
parent
c266303197
commit
f5f398788d
+1
-1
@@ -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
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user