ilya.gorbunov
06/29/2017, 7:02 PMif (this is CharProgression || this is IntProgression || this is LongProgression) {
return this.last
}
Such block won't compile, each progression type should be checked individually. Also it's better to do it before creating an iterator.