Java 8 override restrictions: interface can't implement a method of 'Any'
- update Range and related classes
This commit is contained in:
@@ -21,6 +21,8 @@ public class ComparableRange<T: Comparable<T>> (
|
||||
override fun hashCode(): Int {
|
||||
return if (isEmpty()) -1 else 31 * start.hashCode() + end.hashCode()
|
||||
}
|
||||
|
||||
override fun toString(): String = "$start..$end"
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user