Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/opposite.kt
T
Svetlana Isakova b5e6568726 bug fixed: do not substitute type parameters twice
through final argument check
2013-09-03 19:50:00 +04:00

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