bug fixed: do not substitute type parameters twice

through final argument check
This commit is contained in:
Svetlana Isakova
2013-09-03 19:50:00 +04:00
parent a49dcc0dd4
commit b5e6568726
3 changed files with 21 additions and 10 deletions
@@ -0,0 +1,11 @@
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)
}