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

13 lines
286 B
Kotlin
Vendored

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