Drop Ranges, Progressions, ProgressionIterators for Double and Float.
Undeprecate generic Comparable.rangeTo, but return private implementation instead. Undeprecate contains and coerceIn for generic ranges.
This commit is contained in:
@@ -38,23 +38,5 @@ fun box(): String {
|
||||
return "Wrong elements for ('a'..'c').reversed(): $list4"
|
||||
}
|
||||
|
||||
val list5 = ArrayList<Double>()
|
||||
for (i in (3.0..5.0).reversed()) {
|
||||
list5.add(i)
|
||||
if (list5.size() > 23) break
|
||||
}
|
||||
if (list5 != listOf<Double>(5.0, 4.0, 3.0)) {
|
||||
return "Wrong elements for (3.0..5.0).reversed(): $list5"
|
||||
}
|
||||
|
||||
val list6 = ArrayList<Float>()
|
||||
for (i in (3.0.toFloat()..5.0.toFloat()).reversed()) {
|
||||
list6.add(i)
|
||||
if (list6.size() > 23) break
|
||||
}
|
||||
if (list6 != listOf<Float>(5.0.toFloat(), 4.0.toFloat(), 3.0.toFloat())) {
|
||||
return "Wrong elements for (3.0.toFloat()..5.0.toFloat()).reversed(): $list6"
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user