Remove rangeUntil extensions that are now shadowed by members #KT-52933

This commit is contained in:
Ilya Gorbunov
2022-08-25 15:57:31 +02:00
committed by Space
parent e0a2400823
commit 38099e11c3
5 changed files with 0 additions and 508 deletions
@@ -152,31 +152,6 @@ object RangeOps : TemplateGroupBase() {
}
}
val f_rangeUntil = fn("rangeUntil(to: Primitive)").byTwoPrimitives {
include(Primitives, integralCombinations + unsignedMappings)
} builderWith { (fromType, toType) ->
operator()
inlineOnly()
since("1.7")
annotation("@ExperimentalStdlibApi")
suppress("EXTENSION_SHADOWED_BY_MEMBER")
signature("rangeUntil(to: $toType)")
val elementType = rangeElementType(fromType, toType)
val progressionType = elementType.name + "Range"
returns(progressionType)
doc {
"""
Returns a range from this value up to but excluding the specified [to] value.
If the [to] value is less than or equal to `this` value, then the returned range is empty.
"""
}
body { "return until(to)" }
}
val f_containsMixedClosed = fn("contains(value: Primitive)").byTwoPrimitives {
include(Ranges, numericCombinations)
filter { _, (rangeType, itemType) -> rangeType != itemType }