Jeremy
02/26/2019, 9:02 AM// scala
sealed trait Test[+A] {
…
def test[B >: A]: B
…
}
// kotlin
Sealed class Test<out A> {
…
fun <A : B> test(): B. // <— this is problem
…
}
I want to make type B is a super type of A. Anyone who knows this problem??Robert Jaros
02/26/2019, 9:16 AMJeremy
02/26/2019, 9:20 AM