KT-1961 Incorrect override error in functions with type parameter with two upper bounds

#KT-1961 Fixed
This commit is contained in:
Andrey Breslav
2012-05-11 18:00:09 +04:00
parent c63af879fa
commit 420a7c9ad4
3 changed files with 116 additions and 19 deletions
@@ -0,0 +1,15 @@
trait Foo
trait Bar
trait A {
fun <T> foo()
where T : Foo, T : Bar
= #()
}
class B : A {
override fun <T> foo()
where T : Foo, T : Bar
= #()
}