Concrete interval type tests only indirectly rely on same TypeOperations
than tested types
#6
Labels
enhancement
New feature or request
TypeOperations
than tested types
#6
To remove redundancy in setting up unit tests for each concrete
Interval
type (e.g.IntInterval
implementingInterval<Int, UInt>
),BasicTypeIntervalsTest.kt
uses an inline function to retrieve the type operations for the type parameters (usinggetBasicTypeOperationsFor()
).This manually needs to be kept in sync if the operations ever change.
Is there a way to directly retrieve the matching
TypeOperations
from the concrete types? Maybe through a common factory interface on the companion objects?The text was updated successfully, but these errors were encountered: