b5e6568726
through final argument check
12 lines
261 B
Kotlin
12 lines
261 B
Kotlin
package a
|
|
|
|
trait Persistent
|
|
trait PersistentFactory<T>
|
|
|
|
class Relation<Source: Persistent, Target: Persistent>(
|
|
val sources: PersistentFactory<Source>,
|
|
val targets: PersistentFactory<Target>
|
|
) {
|
|
fun opposite() = Relation(targets, sources)
|
|
}
|