Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/opposite.kt
T
2015-05-12 19:43:17 +02:00

12 lines
269 B
Kotlin
Vendored

package a
interface Persistent
interface PersistentFactory<T>
class Relation<Source: Persistent, Target: Persistent>(
val sources: PersistentFactory<Source>,
val targets: PersistentFactory<Target>
) {
fun opposite() = Relation(targets, sources)
}