Michael de Kaste
03/03/2023, 12:37 PMsealed interface Range<T : Comparable<T>>{
interface BoundedLeft<T : Comparable<T>> : Range<T>
}
val range: Range.BoundedLeft<LocalDate>
typealias DateRange = Range<LocalDate>
although the above statement is how we like to use it, the bottom two lines can't work:
val daterange: DateRange.BoundedLeft (Unresolved reference: BoundedLeft)
typealias DateRange.BoundedLeft = Range.BoundedLeft<LocalDate> (Redeclaration: DateRange)
ilya.gorbunov
03/03/2023, 10:09 PMDateRange.BoundedLeft
without specifying the type parameter of BoundedLeft
.