Move toString() from primitive ranges to Range

The same can't be done with progressions, because its toString() checks if an
increment is greater than zero, but Progression.increment is of type Number,
which is not Comparable<Int>
This commit is contained in:
Alexander Udalov
2014-01-15 18:19:36 +04:00
parent d88f76f438
commit ca565b9c19
4 changed files with 2 additions and 20 deletions
@@ -71,8 +71,6 @@ class GenerateRanges(val out: PrintWriter) {
fun hashCode()$hashCode
fun toString() = "${"\$start..\$end"}"
class object {
public val EMPTY: $range = $range($emptyBounds)
}