Revert "Convert to range check: don't report it if recursive call will be created"

This reverts commit 73184884
This commit is contained in:
Yan Zhulanow
2020-10-24 00:19:32 +09:00
parent d735637f1e
commit 16dbf7ba74
3 changed files with 10 additions and 52 deletions
@@ -1,21 +0,0 @@
// PROBLEM: none
// WITH_RUNTIME
class TimeIndex(val intValue: Int) : Comparable<TimeIndex> {
override fun compareTo(other: TimeIndex): Int {
TODO()
}
operator fun rangeTo(other: TimeIndex): TimeIndexRange {
return TimeIndexRange(this, other)
}
}
data class TimeIndexRange(val start: TimeIndex, val end: TimeIndex) : Iterable<TimeIndex> {
override fun iterator(): Iterator<TimeIndex> {
TODO()
}
operator fun contains(index: TimeIndex): Boolean {
return <caret>start <= index && index <= end
}
}