KT-1961 Incorrect override error in functions with type parameter with two upper bounds
#KT-1961 Fixed
This commit is contained in:
@@ -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
|
||||
= #()
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user