Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/opposite.fir.kt
T

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)
}