Deprecate with error mixed Int/FP contains operator for ranges KT-22423

This commit is contained in:
Abduqodiri Qurbonzoda
2020-06-23 07:08:18 +03:00
parent ab20b3e083
commit d3fb9cc5f3
22 changed files with 1712 additions and 5903 deletions
@@ -9,9 +9,9 @@ fun box(): String {
assert(Long.MAX_VALUE !in Int.MIN_VALUE..Int.MAX_VALUE)
assert(Int.MAX_VALUE in Long.MIN_VALUE..Long.MAX_VALUE)
assert(Double.MAX_VALUE !in Float.MIN_VALUE..Float.MAX_VALUE)
assert(Float.MIN_VALUE in 0..1)
assert(2.0 !in 1..0)
assert(1.0f in 0L..2L)
assert(Float.MIN_VALUE in 0.0..1.0)
assert(2.0 !in 1.0f..0.0f)
assert(1L in 0..2)
return "OK"
}