Added init keyword to builtins, maven projects and stdlib

This commit is contained in:
Stanislav Erokhin
2015-04-01 03:58:05 +03:00
parent 7cac6e3c5e
commit 6ab83c9b8c
8 changed files with 18 additions and 17 deletions
@@ -279,7 +279,7 @@ public class TakeStream<T>(stream: Stream<T>, count: Int)
public class TakeSequence<T>(private val sequence: Sequence<T>,
private val count: Int
) : Sequence<T> {
{
init {
if (count < 0)
throw IllegalArgumentException("count should be non-negative, but is $count")
}
@@ -360,7 +360,7 @@ public class DropStream<T>(stream: Stream<T>, count: Int)
public class DropSequence<T>(private val sequence: Sequence<T>,
private val count: Int
) : Sequence<T> {
{
init {
if (count < 0)
throw IllegalArgumentException("count should be non-negative, but is $count")
}