Fixed processing function type parameters in override/implement members.

#KT-1603 fixed
This commit is contained in:
Evgeny Gerashchenko
2012-04-22 18:49:43 +04:00
parent 789ff0b273
commit cde38382c0
4 changed files with 66 additions and 8 deletions
@@ -0,0 +1,7 @@
trait Trait {
fun <A, B : Runnable, E : java.util.Map.Entry<A, B>> foo() where B : Cloneable, B : Comparable<B>;
}
class TraitImpl : Trait {
<caret>
}
@@ -0,0 +1,13 @@
import java.util.Map
trait Trait {
fun <A, B : Runnable, E : java.util.Map.Entry<A, B>> foo() where B : Cloneable, B : Comparable<B>;
}
class TraitImpl : Trait {
override fun <A, B : Runnable, E : Map.Entry<A, B>> foo()
where B : Cloneable, B : Comparable<B> {
throw UnsupportedOperationException()
}
}