Advance deprecation level of mixed Int/FP overloads of ClosedRange.contains to HIDDEN KT-22423

This commit is contained in:
Abduqodiri Qurbonzoda
2021-03-26 01:55:25 +03:00
parent 7a6cddf6fe
commit d9ab96126d
6 changed files with 65 additions and 95 deletions
@@ -160,7 +160,7 @@ object RangeOps : TemplateGroupBase() {
check(rangeType.isNumeric() == itemType.isNumeric()) { "Required rangeType and itemType both to be numeric or both not, got: $rangeType, $itemType" }
if (rangeType.isIntegral() != itemType.isIntegral()) {
val message = "This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed."
deprecate(Deprecation(message, warningSince = "1.3", errorSince = "1.4"))
deprecate(Deprecation(message, warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5"))
}
platformName("${rangeType.name.decapitalize()}RangeContains")