supaham
06/16/2017, 2:54 AMclass Bar
class Baz: Bar
class Foo<T: Bar>() {
fun input(t: T)
fun returnT(): T
}
Then
class Other(val foo: Foo<Bar>)
class Impl(foo: Foo<Baz>): Other(foo)
Impl generates: [TYPE_MISMATCH] Type mismatch: inferred type is Foo<Baz> but Foo<Bar> was expected
How can I overcome this issue?gildor
06/16/2017, 5:04 AM