From 9eb5ba910c15c22c056d2e2ba06730dad500c475 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Thu, 29 Oct 2015 22:48:35 +0300 Subject: [PATCH] Do not reimplement Iterable until Progression is dropped. --- core/builtins/src/kotlin/Progressions.kt | 14 +++++++------- .../kotlin/generators/builtins/progressions.kt | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/builtins/src/kotlin/Progressions.kt b/core/builtins/src/kotlin/Progressions.kt index 22ca46fa891..05ed6bca3bd 100644 --- a/core/builtins/src/kotlin/Progressions.kt +++ b/core/builtins/src/kotlin/Progressions.kt @@ -26,7 +26,7 @@ public open class ByteProgression( override val start: Byte, val endInclusive: Byte, override val increment: Int -) : Progression, Iterable { +) : Progression /*, Iterable */ { init { if (increment == 0) throw IllegalArgumentException("Increment must be non-zero") } @@ -59,7 +59,7 @@ public open class CharProgression( override val start: Char, val endInclusive: Char, override val increment: Int -) : Progression, Iterable { +) : Progression /*, Iterable */ { init { if (increment == 0) throw IllegalArgumentException("Increment must be non-zero") } @@ -93,7 +93,7 @@ public open class ShortProgression( override val start: Short, val endInclusive: Short, override val increment: Int -) : Progression, Iterable { +) : Progression /*, Iterable */ { init { if (increment == 0) throw IllegalArgumentException("Increment must be non-zero") } @@ -126,7 +126,7 @@ public open class IntProgression( override val start: Int, val endInclusive: Int, override val increment: Int -) : Progression, Iterable { +) : Progression /*, Iterable */ { init { if (increment == 0) throw IllegalArgumentException("Increment must be non-zero") } @@ -159,7 +159,7 @@ public open class LongProgression( override val start: Long, val endInclusive: Long, override val increment: Long -) : Progression, Iterable { +) : Progression /*, Iterable */ { init { if (increment == 0L) throw IllegalArgumentException("Increment must be non-zero") } @@ -194,7 +194,7 @@ public open class FloatProgression( override val start: Float, val endInclusive: Float, override val increment: Float -) : Progression, Iterable { +) : Progression /*, Iterable */ { init { if (java.lang.Float.isNaN(increment)) throw IllegalArgumentException("Increment must be not NaN") if (increment == 0.0f) throw IllegalArgumentException("Increment must be non-zero") @@ -230,7 +230,7 @@ public open class DoubleProgression( override val start: Double, val endInclusive: Double, override val increment: Double -) : Progression, Iterable { +) : Progression /*, Iterable */ { init { if (java.lang.Double.isNaN(increment)) throw IllegalArgumentException("Increment must be not NaN") if (increment == 0.0) throw IllegalArgumentException("Increment must be non-zero") diff --git a/generators/src/org/jetbrains/kotlin/generators/builtins/progressions.kt b/generators/src/org/jetbrains/kotlin/generators/builtins/progressions.kt index bb30341e606..b39922af2d8 100644 --- a/generators/src/org/jetbrains/kotlin/generators/builtins/progressions.kt +++ b/generators/src/org/jetbrains/kotlin/generators/builtins/progressions.kt @@ -81,7 +81,7 @@ public open class $progression( override val start: $t, val endInclusive: $t, override val increment: $incrementType -) : Progression<$t>, Iterable<$t> { +) : Progression<$t> /*, Iterable<$t> */ { init { $constructor }