Moved *Range.step() functions to stdlib.

This commit is contained in:
Evgeny Gerashchenko
2013-01-23 20:05:35 +04:00
parent 9b866b2e12
commit 0ff3589bb9
13 changed files with 85 additions and 74 deletions
-14
View File
@@ -11,8 +11,6 @@ public class IntRange(public val start : Int, public val size : Int) : Range<Int
public val end : Int
public fun step(step: Int) : IntIterator
public class object {
public val EMPTY: IntRange
}
@@ -25,8 +23,6 @@ public class LongRange(public val start : Long, public val size : Long) : Range<
public val end : Long
public fun step(step: Long) : LongIterator
public class object {
public val EMPTY: LongRange
}
@@ -39,8 +35,6 @@ public class ByteRange(public val start : Byte, public val size : Int) : Range<B
public val end : Byte
public fun step(step: Int) : ByteIterator
public class object {
public val EMPTY: ByteRange
}
@@ -53,8 +47,6 @@ public class ShortRange(public val start : Short, public val size : Int) : Range
public val end : Short
public fun step(step: Int) : ShortIterator
public class object {
public val EMPTY: ShortRange
}
@@ -67,8 +59,6 @@ public class CharRange(public val start : Char, public val size : Int) : Range<C
public val end : Char
public fun step(step: Int) : CharIterator
public class object {
public val EMPTY: CharRange
}
@@ -79,8 +69,6 @@ public class FloatRange(public val start : Float, public val size : Float) : Ran
public val end : Float
public fun step(step: Float) : FloatIterator
public class object {
public val EMPTY: FloatRange
}
@@ -91,8 +79,6 @@ public class DoubleRange(public val start : Double, public val size : Double) :
public val end : Double
public fun step(step: Double) : DoubleIterator
public class object {
public val EMPTY: DoubleRange
}
@@ -320,6 +320,14 @@ public class StdlibTest extends CodegenTestCase {
blackBoxFile("uptoDownto.kt");
}
public void testKt765 () {
blackBoxFile("regressions/kt765.kt");
}
public void testKt925 () {
blackBoxFile("regressions/kt925.kt");
}
public void testKt930 () {
blackBoxFile("regressions/kt930.kt");
}
@@ -2837,11 +2837,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
blackBoxFileByFullPath("compiler/testData/codegen/box/primitiveTypes/kt757.kt");
}
@TestMetadata("kt765.kt")
public void testKt765() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/box/primitiveTypes/kt765.kt");
}
@TestMetadata("kt821.kt")
public void testKt821() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/box/primitiveTypes/kt821.kt");
@@ -2867,11 +2862,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
blackBoxFileByFullPath("compiler/testData/codegen/box/primitiveTypes/kt887.kt");
}
@TestMetadata("kt925.kt")
public void testKt925() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/box/primitiveTypes/kt925.kt");
}
@TestMetadata("kt935.kt")
public void testKt935() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/box/primitiveTypes/kt935.kt");