Made N type parameter not Number.

Otherwise it fails with NoSuchMethodError in runtime.
This commit is contained in:
Evgeny Gerashchenko
2013-01-26 00:25:26 +04:00
parent 3eac3cc38c
commit 0660dfb84c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ public class DoubleRange(
}
public trait NumberSequence<N: Number>: Iterable<N> {
public trait NumberSequence<N: Any>: Iterable<N> {
public val start: N
public val end: N
public val increment: Number
+1 -1
View File
@@ -1119,7 +1119,7 @@ public abstract class Number : jet.Hashable {
public abstract fun toShort() : jet.Short
}
public trait NumberSequence</*0*/ N : jet.Number> : jet.Iterable<N> {
public trait NumberSequence</*0*/ N : jet.Any> : jet.Iterable<N> {
public abstract val end : N
public abstract val increment : jet.Number
public abstract val start : N